• 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: nil in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

--
Takaaki Naganoya
email@hidden
http://piyocast.com/as/

 _______________________________________________
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

  • Follow-Ups:
    • Re: nil in AppleScript
      • From: Shane Stanley <email@hidden>
References: 
 >nil in AppleScript (From: Takaaki Naganoya <email@hidden>)
 >Re: nil in AppleScript (From: Shane Stanley <email@hidden>)
 >Re: nil in AppleScript (From: Takaaki Naganoya <email@hidden>)
 >Re: nil in AppleScript (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: nil in AppleScript
  • Next by Date: Re: nil in AppleScript
  • Previous by thread: Re: nil in AppleScript
  • Next by thread: Re: nil in AppleScript
  • Index(es):
    • Date
    • Thread