• 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: Coerce file reference to text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coerce file reference to text


  • Subject: Re: Coerce file reference to text
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 10 May 2006 08:27:14 -0700


On May 10, 2006, at 8:08 AM, Sam wrote:

Is there a better way to get "SeverVol/Job Folder/ Quark_file_I_want"? I keep coming up missing it or errors that the file reference can't be text.

Won't "posix path of" do what you want? -- "The optimist proclaims that this is the best of all possible worlds ; and the pessimist fears this is true." --James Branch Cabell

set foo to (choose file)
POSIX path of foo

--> "/Applications/AppleScript/Script Editor.app/"

For a file not on the startup disk, the result looks like this:

--> "/Volumes/Deety/Applications/AppleScript/Script Editor.app/"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Coerce file reference to text (From: Sam <email@hidden>)

  • Prev by Date: Re: how to create table in TextEdit using applescript
  • Next by Date: Re: Coerce file reference to text
  • Previous by thread: Coerce file reference to text
  • Next by thread: Re: Coerce file reference to text
  • Index(es):
    • Date
    • Thread