Re: a secure delete droplet
Re: a secure delete droplet
- Subject: Re: a secure delete droplet
- From: Kai <email@hidden>
- Date: Tue, 11 Mar 2003 02:37:38 +0000
on Mon, 10 Mar 2003 08:42:59 +0100, email@hidden (Michael
Slomski) wrote:
>
Someone pointed out, that if you drag an alias on a dropplet, the alias is
>
always resolved first. So your dropplet will delete the original, not the
>
alias!
>
So be shure, that you want this behavior. I don't know how to fix this, but
>
we have a lot of applescripters here on the list, so perhaps one will
>
enlighten us/me :-)
This cropped up recently in another thread:
=============================
From: Kai <email@hidden>
Date: Sun, 09 Mar 2003 11:29:14 +0000
To: <email@hidden>
Subject: Re: "info for" weirdness
on Sat, 8 Mar 2003 19:41:07 -0500, Rob Jorgensen <email@hidden> wrote:
>
At 5:45 PM -0500 3/8/03, Marc K. Myers wrote:
>
>> Date: Sat, 08 Mar 2003 20:17:24 +1100
>
>> Subject: Re: "info for" weirdness
>
>> From: Shane Stanley <email@hidden>
>
>> To: AS lists <email@hidden>
>
>>
>
>> On 8/3/03 6:11 PM +1000, Marc K. Myers, email@hidden, wrote:
>
>>
>
>>> When I execute it from Script Editor the "This file is an alias"
>
>>> message is displayed. When I execute it as a droplet using the same
>
>>> alias file it isn't. I can't debug it because it works just fine in
>
>>> Script Editor. Has anyone got a clue as to why I'm getting this
>
>>> behavior?
>
>>
>
>> When you drag and drop, any aliases are resolved before the information is
>
>> passed to the droplet (or any other app). It has ever been thus.
>
>
>
>Once upon a time I knew that. I haven't been doing much scripting
>
>lately and it must have gotten moved offline. The question, now, is
>
>"Is there any scriptable way to detect if a dropped file is an
>
>alias?"
>
>
How about check for Finder's "original item". If it's there, it's an alias.
Unfortunately, I don't think that'll work. I'd probably try something like
this:
===============
on open inItems
tell application "Finder" to set inItems to selection
-- [continue with rest of script...]
end open
===============
--
Kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.