• 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 12:30:45 +0900

2016/11/05 9:38、Takaaki Naganoya <email@hidden>のメール:
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.

I checked the QuickLook Plugin which made warning message with “choose file” command with osascript.
It has damaged or incomplete bundle package. After removing it, the warning message disappeared.

--
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

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>)
 >Re: nil in AppleScript (From: Takaaki Naganoya <email@hidden>)

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