Re: Unresolved aliases to arglist of a droplet
Re: Unresolved aliases to arglist of a droplet
- Subject: Re: Unresolved aliases to arglist of a droplet
- From: Axel Luttgens <email@hidden>
- Date: Mon, 11 Nov 2002 12:35:23 +0100
Doug McNutt wrote:
I'm pretty sure it was impossible to pass alias files to a droplet in OS9 but has it been repaired in OS neXt?
Tried here with OSX 10.1.5 - AS 1.8
Dropped aliases seem to be immediately resolved.
I need to get references to alias files, not the originals, when they are dropped on an AppleScript saved as an APPL. I can't get back if the finder has already converted the reference to the original.
I'd settle for a way to tell that a conversion was done for now.
The finder selection works OK if the script is run as a compiled script and I think about ignoring the dropped arglist and just asking for the finder selection but I worry a whole lot about timing and whether or not the selection will be valid.
Perhaps could you manage to drop a folder containing the aliases,
instead of the aliases themselves?
This could help to avoid the changing selection related problems, but
may appear unfriendly to your users; depends on the nature of the workflow.
Or to "freeze" the selection into a variable immediately at the
beginning of your script?
Just something like this:
tell application "Finder" to set S to the selection
evaluates the selection and sets S to a list of Finder references that
won't change during your script's execution, whatever tthe user
subsequently selects/deselects.
HTH
_______________________________________________
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.