Re: pass filenames to an application
Re: pass filenames to an application
- Subject: Re: pass filenames to an application
- From: has <email@hidden>
- Date: Tue, 31 May 2005 23:09:04 +0100
dkd brain wrote:
>I am trying to do something that *should* be relatively simple, I want to grab a bunch of files (whose names start with the same string) in an arbitrary folder and open them in BBedit....
set theItem to choose folder
tell application "Finder"
tell (every file of folder theItem whose name begins with "AS ")
if (count) is 1 then -- workaround for bug in 'as alias list' coercion
set aliasesList to {it as alias}
else
set aliasesList to it as alias list
end if
end tell
end tell
if aliasesList is not {} then
tell application "BBEdit" to open aliasesList
end if
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden