Jump to content

Extract OS Username


This topic is 6987 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Mac OS 10 B)

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

This topic is 6987 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.