Re: Scripting Filepaths
Re: Scripting Filepaths
- Subject: Re: Scripting Filepaths
- From: Chris Page <email@hidden>
- Date: Thu, 30 Jul 2009 14:54:37 -0700
On Jul 29, 2009, at 5:21 PM, Jon Rosen wrote:
This works fine: open POSIX file "/Users/admin/Desktop/Sheaffer
Flattop.png"
This does not: open POSIX file "~/Desktop/Sheaffer Flattop.png"
I don't understand why "~" doesn't work with AppleScript filepaths.
"~" is a feature of shells, not a feature of POSIX paths. Shells
expand "~" to construct the full path, then pass it to commands.
--
Chris Page
The other, other AppleScript Chris
_______________________________________________
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