NSURLs not passed correctly from AppleScript to sandboxed app
Originator: | thedov | ||
Number: | rdar://19680027 | Date Originated: | 01-Feb-2015 11:21 PM |
Status: | Open | Resolved: | |
Product: | OS X SDK | Product Version: | Mac OS X 10.10.2 (14C109) |
Classification: | Other Bug | Reproducible: | Always |
Summary: When you provide a command’s argument (of type “file”) using a path string, and not as a file handle or alias, the command creates a valid NSURL, but with no file access. This is not obvious, and provides a poor user experience for scripting clients Steps to Reproduce: 1. Extract, build, and run the attached sample project 2. Compile and run Test Script.applescript Expected Results: Script returns “This is some text” Actual Results: The app returns an error “you don’t have permission to view it”
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!