• 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: "Cannot save C and Objective C pointers in script"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >"Cannot save C and Objective C pointers in script"? (From: Tim Nelson <email@hidden>)

  • Prev by Date: "Cannot save C and Objective C pointers in script"?
  • Next by Date: Perplexing? These handlers add to heap on idle
  • Previous by thread: "Cannot save C and Objective C pointers in script"?
  • Next by thread: Perplexing? These handlers add to heap on idle
  • Index(es):
    • Date
    • Thread