alias or not an alias
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