Re: AppleScript 101 - concise paths or always Biblical?
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