Re: "Cannot save C and Objective C pointers in script"?
Re: "Cannot save C and Objective C pointers in script"?
- Subject: Re: "Cannot save C and Objective C pointers in script"?
- From: Shane Stanley <email@hidden>
- Date: Sat, 17 Sep 2016 09:59:13 +1000
On 17 Sep 2016, at 4:18 AM, Tim Nelson <email@hidden> wrote:
>
> shortly after creating this a message popped up saying "Cannot save C and Objective C pointers in script".
All this message means is that one or more top-level variables in your script contains a Cocoa object (ie, pointer). When you save a script, the values of any top-level variables are saved with it -- but AppleScript can't save Cocoa objects. The solution is to compile the script before saving, which clears all values.
Just be aware that this is a sign that your script will not be able to persist its property values.
If you're using Script Debugger 6, there is a setting in the Script menu, Persistent Properties. With this off, scripts are always saved without the variables' values, so you will never see the message.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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