• 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: Coercion question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercion question


  • Subject: Re: Coercion question
  • From: "Marc K. Myers" <email@hidden>
  • Date: Fri, 15 Jun 2001 16:58:18 -0400
  • Organization: [very little]

> Date: Fri, 15 Jun 2001 10:07:49 +0200
> Subject: Coercion question
> From: Jan Pieter Kunst <email@hidden>
> To: Applescript lijst <email@hidden>
>
> Hello all,
>
> Is it possible to coerce this:
>
> alias "Disk:Folder:File"
>
> to this:
>
> {file "File" of folder "Folder" of startup disk}

set x to (choose folder) -- just to get x set to an alias
tell application "Finder" to set y to item (x as text)

y will now contain a Finder reference to the file, folder, or disk
represented by x.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[6/15/01 4:57:21 PM]


  • Prev by Date: Scripting MAME?
  • Next by Date: RE: Replacing Codes with Text
  • Previous by thread: Re: Coercion question
  • Next by thread: Fwd: [PR] 24U Appearance OSAX DE 1.1.1
  • Index(es):
    • Date
    • Thread