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:
"Stockly, Ed" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 15 Jul 2009 10:30:22 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (43 lines)
Mark is right. Plus, if you simply put your line inside a finder tell block
it would also work.

tell application "Finder"
    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"}
end tell

ES

On 07/15/09 10:15 AM, "Mark Lively"  wrote:

> On Jul 15, 2009, at 12:06 PM, RJay Hansen wrote:
> 
>> 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"}
> 
> This is a list of finder objects.  Which makes sense inside of a
> Finder tell block.
> 
> if you had said
> 
> tell application "Finder"
> set fileList to every file of tiffFolder as alias list
> end tell
> 
> you would have received.
> 
> {alias "prepress:Hold for V30:12266_Aviator:12266_Aviator.psG01.TIF",
> alias"prepress:Hold for V30:12266_Aviator:12266_Aviator.psG01.TIF"}
> 
> which compiles.
> 
> -Mark
> Who is ready to go on vacation.

ATOM RSS1 RSS2