Re: nil in AppleScript
Re: nil in AppleScript
- Subject: Re: nil in AppleScript
- From: Takaaki Naganoya <email@hidden>
- Date: Sat, 05 Nov 2016 12:30:45 +0900
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.
|
_______________________________________________
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