Re: "info for"
Re: "info for"
- Subject: Re: "info for"
- From: Cornwall <email@hidden>
- Date: Sat, 25 May 2002 10:48:21 -0700
At 3:35 PM +1000 5/25/02, Timothy Bates wrote:
>
tell application "Finder"
>
try
>
set theSelection to the selection as alias list
>
on error
>
set theSelection to {the selection as alias}
>
end try
>
>
end tell
>
>
repeat with anItem in theSelection
>
info for (anItem as file specification)
>
end repeat
At 10:58 PM -0700 5/24/02, Paul Berkowitz wrote:
>
There's no more 'file specification' in OS X. That bit will stop working one
>
of these days. Better just to leave it as
Getting the selection as alias list has already stopped working in OSX.
tell application "Finder"
try
set theSelection to the selection as alias list
on error
set theSelection to {the selection as alias}
end try
end tell
That returns a list of Finder file refs.
{document file "synopsis_content1b.jpg" of folder "Wangdoodles" of folder "Desktop" of folder Etc Etc}
I need a repeat loop to get a list of alias refs.
This still gets an alias list.
set cFold to choose folder
tell application "Finder"
try
set alsLst to every item of cFold as alias list
on error
set alsLst to every item of cFold as alias as list
end try
end tell
OSX 10.1.4 and AppleScript 1.8.2b3
Corny
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.