• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pass filenames to an application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: pass filenames to an application
  • Next by Date: Re: pass filenames to an application
  • Previous by thread: Re: pass filenames to an application
  • Index(es):
    • Date
    • Thread