• 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: Sat, 05 Nov 2016 09:38:40 +0900

2016/11/04 16:07、Shane Stanley <email@hidden>のメール:
On 4 Nov. 2016, at 5:51 pm, Takaaki Naganoya <email@hidden> wrote:

If I add 'use framework “AppKit”’, the warning message does not disappear.

Have you tried changing this:

set theStyledText to current application's NSMutableAttributedString's alloc()'s initWithData:aData options:(missing value) documentAttributes:(null) |error|:(missing value)

to this:

set theStyledText to current application's NSMutableAttributedString's alloc()'s initWithData:aData options:(missing value) documentAttributes:(missing value) |error|:(missing value)

You shouldn't be using "null”.

I confirmed it. I should not to use null. It was my mistake.
But the problem about this is “osascript" returns other (useless) warning messages to STDOUT.

--
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: Takaaki Naganoya <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>)
 >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