Re: Scripting Filepaths
Re: Scripting Filepaths
- Subject: Re: Scripting Filepaths
- From: Philip Aker <email@hidden>
- Date: Thu, 30 Jul 2009 15:29:07 -0700
On 2009-07-30, at 08:48:48, James Bensley wrote:
I'm an AS n00b so this is just my two pence;
set current_user to do shell script("whoami")
set file_path to "/Users/" & current_user & /Desktop/MyFile.abc"
In addition to the other comments, 'whoami' is obsolete. Use 'id -un'
for it's replacement <x-man-page://whoami>.
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