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:
Bill Steele <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 15 Jul 2009 14:56:40 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
>  >> 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.
>
>I see. As I guessed, I was missing something obvious.
>
>Thanks,
>
>RJay

Also, my original example did not call the Finder at all. I used the 
list folder and choose from list functions of Standard Additions. 
List folder gives a simple list of filenames. (After choosing from 
the list you need a line or two to add the folder path back in before 
you try to do something with the file. But you also need that with 
the above.)

-- 

Bill Steele
[log in to unmask]

ATOM RSS1 RSS2