Re: Create Aliases to Network Volumes
Re: Create Aliases to Network Volumes
- Subject: Re: Create Aliases to Network Volumes
- From: Shane Stanley <email@hidden>
- Date: Fri, 12 Jul 2013 09:06:17 +1000
On 12/07/2013, at 1:05 AM, Daniel Brashler <email@hidden> wrote:
set mybookmark to current application's NSURL's bookmarkDataWithContentsOfURL_error_(mytargeturl,missing value)
set didAlias to current application's NSURL's writeBookmarkData_toURL_options_error_(mybookmark,myaliasurl,missing value,missing value)
I get:
unable to set argument 4 - the AppleScript value <NSAppleEventDescriptor: 'msng'> could not be coerced to type Q. (error -10000)
For some reason, those error messages are off by one -- it's argument 3. You've provided missing value for options, but the value required is an integer (0).
Also, I suspect the previous command might not be enough. You may need to use this:
set mybookmark to myaliasurl's bookmarkDataWithOptions_includingResourceValuesForKeys_relativeToURL_error_(current application's NSURLBookmarkCreationSuitableForBookmarkFile, missing value, missing value, missing value) set didAlias to current application's NSURL's writeBookmarkData_toURL_options_error_(mybookmark, myaliasurl, 0, missing value)
|
_______________________________________________
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