open command no longer being sent to our app
open command no longer being sent to our app
- Subject: open command no longer being sent to our app
- From: Steve Mills <email@hidden>
- Date: Wed, 07 Oct 2009 13:16:13 -0500
I just wrote a script to process a folder full of files. Each file is
a very old document file created by a very old version of our app, way
before OS X. They don't have extensions. And due to some operation,
they no longer have a type/creator either. Finder thinks the files are
Unix Executable Files. Still, the modern version of our app can open
the files, and it knows they are files we can open by reading and
inspecting the first few bytes.
Now, for some reason, the script I'm writing is not working as it
should. I'm sending the alias to the file directly to our app's "open"
handler:
on open fyls
--Simplified script. Assume that each alias in the list really is an
alias to one of a document.
repeat with fyl in fyls
tell application "MultiAd Creator Pro"
open fyl
end tell
end repeat
end open
Simple, right? Well, in 10.6.1, the event never even gets to our app.
Instead, something in the OS is intercepting it. And since the files
think they're Unix files, the files get opened in Terminal, as if they
really were Unix Executable Files.
Since when did the "open" event start getting intercepted by something
other than the target app? Looks like another 10.6 bug to me.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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