MACSCRPT Archives

January 2011

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:
Christopher Stone <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sun, 9 Jan 2011 06:51:26 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
On Jan 09, 2011, at 06:05, Walter Ian Kaye wrote:
>> On Dec 6, 2010, at 3:48 PM, Tom Bender wrote:
>> It is ASCII, and no other script has ever cared, and no.
>> But it turns out it did work with alias, once I found the right
>> finicky syntax. You can't say "foo as alias."  Has to be "alias foo."
> 
> What was foo? Was it a path string or a filespec? (I've been doing 'alias pathstring' since System 7.)
______________________________________________________________________

Both alias and simple string path syntaxes work perfectly in Mac OS 10.6.6:

set fileAlias to alias "Stone'sHD:Chris's Stuff 1.txt"
set unixPath to "/Volumes/Stone'sHD/Chris's Stuff 2.txt"

tell application "Tex-Edit Plus"
	activate
	open fileAlias
	open unixPath
end tell

** Note that in the Unix path I haven't bothered to escape the spaces or quote the string.  Ha; TEP doesn't like the quoted form.

--
Chris

ATOM RSS1 RSS2