• 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: Another gibberish error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Another gibberish error


  • Subject: Re: Another gibberish error
  • From: Shane Stanley <email@hidden>
  • Date: Sun, 25 Sep 2016 11:13:12 +1000

On 25 Sep. 2016, at 5:12 am, Yvan KOENIG <email@hidden> wrote:

The problem striking upon Robert's script is not related to Sierra.

So it appears -- it's a bug that's probably been there for a while.

So this works:

set volume output volume 2

and this works:

use scripting additions
set volume output volume 2

But this doesn't:

use framework "Foundation"
use scripting additions
set volume output volume 2

There are two workarounds. One is to put the ASObjC stuff in a script library, and call the handler from there. The other is to address the problematic command to the current application:

use framework "Foundation"
use scripting additions
tell current application to set volume output volume 2

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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: Another gibberish error
      • From: Shane Stanley <email@hidden>
References: 
 >Another gibberish error (From: Robert Poland <email@hidden>)
 >Re: Another gibberish error (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Another gibberish error
  • Next by Date: Re: Another gibberish error
  • Previous by thread: Re: Another gibberish error
  • Next by thread: Re: Another gibberish error
  • Index(es):
    • Date
    • Thread