DykstrL Posted March 2, 2005 Share Posted March 2, 2005 I need an applescript to extract the user name from the OSX and place it in a field in a FM file. I think it's the short name that I need. I don't know if there's an equivalent for OS9, but if so, to extract that also would be cool. ...any takers? Link to comment Share on other sites More sharing options...
h2o.be Posted March 2, 2005 Share Posted March 2, 2005 Mac OS 10 tell application "System Events" set theuser to full name of current user end tell -- tell application "FileMaker Pro" set cell "name" of current record of layout "layout" to theuser -- end tell Link to comment Share on other sites More sharing options...
DykstrL Posted March 2, 2005 Author Share Posted March 2, 2005 Thanx a heap! I assume that to get the short name is to substitute 'full name' with 'short name'? Link to comment Share on other sites More sharing options...
h2o.be Posted March 2, 2005 Share Posted March 2, 2005 Juste "name" set theuser to name of current user Link to comment Share on other sites More sharing options...
DykstrL Posted March 2, 2005 Author Share Posted March 2, 2005 Thanx a bunch!! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6594 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now