MACSCRPT Archives

July 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:
RJay Hansen <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 15 Jul 2009 09:06:50 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (36 lines)
Am I missing something obvious here (probably)?--

set tiffFolder to choose folder

tell application "Finder"
set fileList to every file of tiffFolder
end tell

returns a list of the files in the chosen folder in the form of:

{document file "12266_Aviator.psG01.TIF" of folder "12266_Aviator" of
folder "Hold for V30" of disk "prepress" of application "Finder", document
file "12266_Aviator.psG00.TIF" of folder "12266_Aviator" of folder "Hold
for V30" of disk "prepress" of application "Finder"} (this is an
abbreviated list for purposes of this email)

But...if I copy that list and try to say:

set myList to {document file "12266_Aviator.psG01.TIF" of folder
"12266_Aviator" of folder "Hold for V30" of disk "prepress" of application
"Finder", document file "12266_Aviator.psG00.TIF" of folder
"12266_Aviator" of folder "Hold for V30" of disk "prepress" of application
"Finder"}

It won't compile...instead giving the error:

Expected "," or "}" but found ".

and it highlights the open quote of the first folder in the first item of
the list. I get the same thing in Smile or in Script Editor. What am I not
understanding here?

thanks,

RJay

ATOM RSS1 RSS2