Re: Scripting Filepaths
Re: Scripting Filepaths
- Subject: Re: Scripting Filepaths
- From: Ronald Hofmann <email@hidden>
- Date: Fri, 31 Jul 2009 00:02:32 +0200
As far as I know ~ is a feature of bash shell. Not sh.
Gruss, Ronald Hofmann
---
Am 30.07.2009 um 23:54 schrieb Chris Page <email@hidden>:
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 (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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