From: Andy Fragen <[EMAIL PROTECTED]>
Date: Wed, 21 Feb 2001 17:51:30 -0800
Subject: [OT] Scripting Finder help
I know this is a bit off topic but I thought I could get some help from some
of the ace scripters out there.
I want to create a droplet that will create an alias to a file. All the
files are in the same folder. The alias will be renamed.
So far I have the following
on open theFile
tell application "Finder"
set thePath to (parent of theFile)
set newAlias to thePath & ":Before.jpg"
make new alias file to selection at file newAlias
end tell
end open
I keep getting run errors about can't get parent of theFile. I obviously
have something wrong here but my AppleScript for Dummies isn't helping me.
Thanks for any help.
You’re concatenating your new filename including the one illegal character to the MacOS. Change your colon to a hyphen.
--
_______________________________
You say you are lying. But if everything you say is a lie, then you are
telling the truth. You cannot tell the truth because everything you say
is a lie. You lie, you tell the truth...but you cannot, for you lie.
--Norman the android, "I, Mudd" <mailto:[EMAIL PROTECTED]>
