• 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 101 - concise paths or always Biblical?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript 101 - concise paths or always Biblical?


  • Subject: Re: AppleScript 101 - concise paths or always Biblical?
  • From: JollyRoger <email@hidden>
  • Date: Fri, 18 Jan 2002 06:45:37 -0600

On 1/17/2002 8:14 PM, "SeaJay" <email@hidden> wrote:

> Howdy,
>
> Just jumped whole-hog into AppleScript ("AS") on OSX.
>
> Question:
> Is there a way to define a path in AS without sound
> like the Old Testament?
>
> Something like: Tell "drive/folder/file"
>
> instead of:
> 'And lo-and-behold, "Drive" begat "Folder-A" who
> begat "Folder-B" who begat "File" and then the
> Mennonites ... :-D

Sure. Keep in mind that on the Macintosh, you use a colon as a delimiter
not a forward slash), so paths look like this:

"Calvin:Audio:SoundJam MP:SoundJam MP"

To see what it looks like, try running this script:

-- begin script
choose file
-- end script


References: 
 >AppleScript 101 - concise paths or always Biblical? (From: SeaJay <email@hidden>)

  • Prev by Date: Question: How do you open scripts?
  • Next by Date: Re: AS101: scripts for distribution - various Qs
  • Previous by thread: AppleScript 101 - concise paths or always Biblical?
  • Next by thread: Using error handlers (was Re: HD name change for X)
  • Index(es):
    • Date
    • Thread