MACSCRPT Archives

December 2009

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Mon, 14 Dec 2009 23:54:09 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
At 12:20 -0800 14/12/09, Stockly, Ed wrote:

>Sounds like you're manually typing your paths in.
>
>Here's a better way to get a valid reference to put into your script:
>
>Run this script in Script Editor.  Navigate to the script you want to load
>into your script. When the dialog comes up, copy and paste the contents into
>your script [...]


In Smile, if you drag the file (say the Scripts Folder) from the 
Finder to the script window you will get

         alias "Mac Mini:Library:Scripts"

In Script Editor, if you drag the folder to the script window, you 
will get an apparently superfluous dialog : whichever option you 
choose, you get

         "/Library/Scripts"

pasted into the window.

This can be converted to something useful by doing this:

         posix file "/Library/Scripts" as alias
         --=> alias "Mac Mini:Library:Scripts:"

...or perhaps Script Editor has evolved in the direction of sanity 
since 10.4.11

JD

ATOM RSS1 RSS2