• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't consistently make alias folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't consistently make alias folder


  • Subject: Re: Can't consistently make alias folder
  • From: Jim Skibbie <email@hidden>
  • Date: Wed, 30 Jan 2008 12:19:30 -0600
  • Thread-topic: Can't consistently make alias folder

Title: Re: Can't consistently make alias folder
Sorry, I may have confused the issue as I pasted in the result from the Event log...

The actual script code is:

   
make new alias file at folder appFolder to AIfold with properties {name:AI_ASName}

where the variables above are strings that are the paths to the two places and the last one is the name of the new alias folder.

If I make the string variables into aliases then that will work consistently?

Thanks.
Jim

On 30 Jan 2008, at 16:25, Jim Skibbie wrote:

>
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"}

Your 'to' parameter should be a Finder reference or AppleScript alias value, not a string. Not that you should really be dumping scripts at / anyway; use ~/Library/Scripts for per-user scripts and /Library/ Scripts for system-wide ones with permissions set appropriately, and they should all show up in the Script menu automatically.

Has


From: Jim Skibbie <email@hidden>
Date: Wed, 30 Jan 2008 10:25:39 -0600
To: "email@hidden" <email@hidden>
Conversation: Can't consistently make alias folder
Subject: 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Can't consistently make alias folder
      • From: KOENIG Yvan <email@hidden>
    • Re: Can't consistently make alias folder
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Can't consistently make alias folder (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Re: Can't consistently make alias folder
  • Next by Date: Quark page name Question
  • Previous by thread: Re: Can't consistently make alias folder
  • Next by thread: Re: Can't consistently make alias folder
  • Index(es):
    • Date
    • Thread