Re: Droplet Misbehaviour
Re: Droplet Misbehaviour
- Subject: Re: Droplet Misbehaviour
- From: John W Baxter <email@hidden>
- Date: Sat, 6 Jan 2001 10:03:59 -0800
At 10:08 -0500 1/6/01, Robert Poland wrote:
>
>Here's an odd thing.
>
>
>
>I'm using an applet that tidies away stuff dropped onto it. When a locked
>
>file is among the detritus, I get that pesky dialog warning me that I won't
>
>be able to save any changes & asking do I want to open the document anyway.
>
>Excuse me? (This dialog is irritating enough when you actually want to open
>
>the file. Any suggestions as to how I can rid myself of it forever warmly
>
>received.)
>
>
>
>If I click cancel, the droplet quits, if I click OK, the droplet runs as
>
>expected but the locked file does not open... er... pff.
>
>
>
>Is there something about the 'on open' thing in droplets that makes a file
>
>think it's being opened when it's simply being moved? Is this a widely known
>
>bug? Is there a work-around?
>
>
I've been fighting this for months. Most recent try is;
>
>
Tell Application "Finder"
>
end tell
>
>
Dropping a locked file on this results in the same, locked file,
>
message. Sounds like a Finder level bug to me.
It's a design issue...Finder is doing what it was intended to do (warn the
user of the non-modifiability of a file before passing it along to the
application which will open it). [In fact, before launching the
application.]
Probably, there should be a bit in the Finder flags for an application
which says "don't warn about locked files."
Probably, there never will be (unless there's a similar issue in Mac OS X)
(the amount of work yet to be done on "classic" Mac OS except to make it
work under Mac OS X is quite small).
This issue is not specific to AppleScript, and there isn't anything either
AppleScript itself or a script writer can do about it.
Except: change the interface/provide an alternate interface. If running
OSAMenu, OneClick, etc etc, it should be possible to write something which
when triggered gets the Finder selection and causes the right thing to be
done to each thing in the selection (watching out for Finder aliases).
I haven't bothered...I just put up with the--in this context--annoying alert.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA