Re: "info for" weirdness
Re: "info for" weirdness
- Subject: Re: "info for" weirdness
- From: Kai <email@hidden>
- Date: Sun, 09 Mar 2003 11:29:14 +0000
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
===============
(BTW, parens aren't required for the open command.)
--
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.