Re: open command no longer being sent to our app
Re: open command no longer being sent to our app
- Subject: Re: open command no longer being sent to our app
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 07 Oct 2009 12:34:01 -0700
- Thread-topic: open command no longer being sent to our app
On 10/07/09 12:03 PM, "Steve Mills" wrote:
>> At this point, I'm using the outer try block as a way to see if each item is
a folder or file. If it fails the "set fold to folder..." line, then it's a
file. I don't know of a better way to check if an item if a file or folder that
will work across many versions of OS X.
set fyl to fyl as text
if the last character of fyl is ":" then
--it's a folder do your folder stuff
-- *
set canOpen to false
else
-- it's a file do your file stuff
set canOpen to true
--*It could also be an application bundle, but if so you wouldn't want to
open that in Multi-Add either, but if you did, you could ask "Finder" for
the kind of fyl, which would return application.
I think your version would also accept a bundle as a folder. It may be
better to just use "kind" for everything.
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden