• 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
alias or not an alias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

alias or not an alias


  • Subject: alias or not an alias
  • From: Luther Fuller <email@hidden>
  • Date: Mon, 29 Aug 2011 18:34:41 -0500

I just spent about an hour trying to fix something that was causing a -1700 error in my script.
I finally began to suspect this line ...

set contentsSource to (make new folder at projectFolder with properties {name:(projectName & " contents")})

I used a diagnostic to determine that contentsSource was indeed an alias, therefore it should work without error elsewhere in my script in a 'tell Finder' block. But it doesn't. So I added ...

... as alias

to the end of the line, above for no good reason. No more errors!

But the dictionary says that 'make new ...' returns an alias. I should not have to add 'as alias'.
Apparently, aliases created by 'make new ...' aren't correctly recognized by the Finder unless you explicitly use '... as alias'. Anyone encountered this before?

 _______________________________________________
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: alias or not an alias
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: temporary items
  • Next by Date: Re: alias or not an alias
  • Previous by thread: Re: Missing value
  • Next by thread: Re: alias or not an alias
  • Index(es):
    • Date
    • Thread