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 11:21:07 -0700
- Thread-topic: open command no longer being sent to our app
Try something like this and see if it helps:
Set fyl to posix path of fyl
tell application "MultiAd Creator Pro" to Open fyl
Or
Set fyl to fyl as text
tell application "MultiAd Creator Pro" to Open file fyl
HTH,
ES
On 10/07/09 11:16 AM, "Steve Mills" wrote:
> 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:
> com
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
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