• 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: Create Aliases to Network Volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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)


-- 
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Create Aliases to Network Volumes (From: Daniel Brashler <email@hidden>)

  • Prev by Date: INDESIGN: Getting Find What / Change To Fields of Not-run Search
  • Next by Date: Re: INDESIGN: Getting Find What / Change To Fields of Not-run Search
  • Previous by thread: Re: Create Aliases to Network Volumes
  • Next by thread: controlling ARD actions
  • Index(es):
    • Date
    • Thread