Re: nil in AppleScript
Re: nil in AppleScript
- Subject: Re: nil in AppleScript
- From: Takaaki Naganoya <email@hidden>
- Date: Fri, 04 Nov 2016 15:51:14 +0900
2016/11/04 14:45、Shane Stanley <email@hidden>のメール:
On 4 Nov. 2016, at 4:14 pm, Takaaki Naganoya <email@hidden> wrote:
Bug Number:2373415
I'm not seeing any obvious problem running the script. However, you shouldn't be using "null". Objective-C's (really, C's) "NULL" is, for all intents and purposes, the same as "nil", so it too is equivalent to "missing value". (You should also have a 'use framework "AppKit"' in there.)
If I add 'use framework “AppKit”’, the warning message does not disappear. I run this script from “osascript” command and it displays
2016-11-04 15:46:18.832 osascript[85058:4997808] *** -[NSConcreteMutableAttributedString initWithData:options:documentAttributes:error:]: value passed to argument of type ^@ must be either `missing value' or `reference'; assuming `missing value'.
“osascript" displays various useless warning messages such as QuickLook warning with choose file command.
|
_______________________________________________
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