• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript broken in 10.5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

On 10/10/08 9:08 AM, "Scott Babcock" <email@hidden> 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
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

References: 
 >Re: AppleScript broken in 10.5.4 (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Make an internet location file with AppleScript?
  • Next by Date: Trying to write a logon script that accesses an SMB share
  • Previous by thread: Re: AppleScript broken in 10.5.4
  • Next by thread: Ignoring Smart Quotes
  • Index(es):
    • Date
    • Thread