• 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: POSIX file weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POSIX file weirdness


  • Subject: Re: POSIX file weirdness
  • From: Paul Berkowitz <email@hidden>
  • Date: Thu, 13 Mar 2003 23:00:40 -0800

On 3/13/03 10:08 PM, "Steve Roy" <email@hidden> wrote:

> Consider this snippet.
>
> tell application "Finder"
> application file id "Crtr" as string as POSIX file
> end tell
> --> file ":.:Pretty/Applications/Creator 6 Folder/MultiAd Creator"
>
> What is this? Am I doing something wrong?


tell application "Finder"
POSIX path of (application file id "Crtr" as alias)
end tell

[Note the 'of'.]

POSIX file is for going the other direction - from Unix to standard
AppleScript - it compiles to it without even needing to run it.

POSIX file "/Volumes/Apps HD/Applications (OS X)/Microsoft Office
X/Microsoft Entourage"

[Note no 'of'/]

compiles to

file "Apps HD:Applications (OS X):Microsoft Office X:Microsoft Entourage"


--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: POSIX file weirdness
      • From: Steve Roy <email@hidden>
  • Prev by Date: Re: Math with AS (was: Code for a circle)
  • Next by Date: Re: scripting "Mail"
  • Previous by thread: POSIX file weirdness
  • Next by thread: Re: POSIX file weirdness
  • Index(es):
    • Date
    • Thread