Re: SMB 10.4 and 10.5 -- How To
Re: SMB 10.4 and 10.5 -- How To
- Subject: Re: SMB 10.4 and 10.5 -- How To
- From: Philip Aker <email@hidden>
- Date: Wed, 25 Jun 2008 09:27:33 -0700
On 08-06-25, at 08:48, email@hidden wrote:
Please feel free to let me know if there is a better way to do this.
I have about four days of Apple scripting experience spread out over
four months so my skills are not the greatest.
Hi Charles,
In Mac OS X, 'whoami' is marked as obsolete and replaced by `id -un`.
The AppleScript call is:
short user name of (system info)
however on 10.4 'system info' may hang. It's reliable on 10.5.
Another way of getting the desktop folder path is:
POSIX path of (path to desktop folder from user domain)
Use this last call outside of a Finder 'tell' block.
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden