access violation in OS X 10.10.3
access violation in OS X 10.10.3
- Subject: access violation in OS X 10.10.3
- From: Jim Weisbin <email@hidden>
- Date: Thu, 30 Apr 2015 11:26:57 -0400
This line breaks with an access violation in OS X 10.10.3:
set myInfo to info for f without size
The solution seems to be to wrap it in a "tell me" block, which I found here:
For security reasons, most scripting addition commands now return a “privilege violation” error when sent between application processes. In order to preserve compatibility with existing scripts, AppleScript redirects most of these commands to the current application, that is, the process running the script. If a script sends events to a remote computer via EPPC (“Remote Apple Events”), AppleScript may redirect them to the System Events process on the target machine. AppleScript Editor’s Event Log will show when this redirection happens: you will see the event sent first to the original target process, return an error, and then sent again, often to the current application.
So, problem solved for now, but I have no idea why "info for..." is considered to be another application process, or how this might affect my other many long time working scripts.
Jim Weisbin | C.T.O. | human | 138 Fifth Avenue | 3rd Floor | New York, NY | 10011 | (212) 352-0211 | (917) 375-2272 | Los Angeles Office | 2046 Broadway | Santa Monica, CA | 90404 | (310) 264-0211 telephone |
|
_______________________________________________
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