Super slow finder alias create
Super slow finder alias create
- Subject: Super slow finder alias create
- From: Tor Langballe <email@hidden>
- Date: Wed, 8 Dec 2004 15:14:58 +0100
I have a script to tell the finder to create an alias file of a disk volume:
tell application "Finder"
set aaa to make new alias file at ("/Users/tor/Desktop/" as POSIX file) to disk ("/Volumes/ezpn-Public" as POSIX file)
set the name of aaa to "diskalias"
end tell
I can run it in Script Editor, and it works immediatly.
When I compile and run it from my application it TAKES A LONG TIME. This is the actuall executing, not compiling.
I tried re-writing everything as AppleEvents (using code derived from the MoreAppleEvents in MoreIsBetter apple code), and it was just as slow.
Yet it works fast from the Script Editor.
Has anybody else had experience with this?
I'm trying to store a volume alias in my app, I don't see any other way of doing it, as only the finder creates an alias that can will still work if the volume is unmounted. It that correct?
Thanks,
PS: Sorry for asking about Mail scripting in Tiger, wasn't thinking its under NDA.
Regards
Tor Langballe
--------------------------------------------------------
CUTTING EDGE TECHNOLOGIES
Bogstadveien 5B, 0355 OSLO, Norway
Fax: +47 2256 4770
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden