Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't consistently make alias folder



Title: Can't consistently make alias folder
Wondering if someone can help with this...

I’m making an alias to a folder of scripts at the user’s root level. Most of the time this script works, but sometimes I get an error that says “Can’t make class <<alia>> error.

The line that is erroring is inside a Finder tell block that says:

   
make new alias file at folder (alias "Macintosh HD:Users:jim:Library:Scripts:Applications:") to "Macintosh HD:Jim Scripts:Script Menu:Illustrator:" with properties {name:"Adobe Illustrator 10"}

Result is usually    -->    
alias file "Adobe Illustrator 10" of folder "Applications" of folder "Scripts" of folder "Library" of folder "jim" of folder "Users" of startup disk

To fix this, I made a try block to trap the error, then created a repeat until exists loop to check to see if it is there, then make it, then check it. Once it’s there, it continues on. This seems like a lot of run-around just to make an alias folder.

Am I doing something wrong? The error seems to come and go and I’m having trouble understanding why it would sometimes error and sometimes not.

Thanks.
Jim
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.