Re: AppleScript broken in 10.5.4
Re: AppleScript broken in 10.5.4
- Subject: Re: AppleScript broken in 10.5.4
- From: Philip Aker <email@hidden>
- Date: Thu, 9 Oct 2008 17:20:30 -0700
On Oct 9, 2008, at 5:29 PM, Shane Stanley wrote:
Undocumented usage:
set fileData to (read file theFilePath as Unicode text) -- no open/close
That's not undocumented. From the latest ASLG: "It is not strictly necessary to use open for access—all the other file commands can accept an alias; if the file is not open, they will open it, do the operation, and then close it."
So if it doesn't work in Studio, that's a Studio bug.
I think the AppleScript Studio term is 'read from file'. In addition 'theFilePath', if coming from a native call in Studio would be a POSIX path whereas 'read' takes an alias or an HFS path.There are a few anomalies WRT pure vanilla AppleScript usage in Studio. One option might be to try enclosing the problem call something like: tell AppleScript set d to read POSIX file f end tell
Philip Aker
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