Re: Another gibberish error
Re: Another gibberish error
- Subject: Re: Another gibberish error
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 24 Sep 2016 22:49:24 +0200
Dropping it sooner you would have been able to treat the switch without the stress implied by a switch to make in a hurry.
Duplicating the script, one version using the deprecated AsObjC Runner and one using the frameworks scheme would have allow you to have a usable version during the time required to find a new scheme behaving well.
I just hope that you haven't too many scripts relying upon the old beast.
Alas, you aren't the unique being behaving this odd way in various areas.
Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) samedi 24 septembre 2016 22:44:51
> Le 24 sept. 2016 à 22:19, Robert Poland <email@hidden> a écrit :
>
> I saw no reason to drop ASObjC Runner with El Capitan as it was working with no problems.
>
>> On Sep 24, 2016, at 1:12:PM, Yvan KOENIG <email@hidden> wrote:
>>
>> Now that I am back in Sierra I may post on the list.
>>
>> The problem striking upon Robert's script is not related to Sierra.
>> It's due to the fact that he waited until Sierra delivery to drop ASObjC Runner which is deprecated since about one year.
>> To be sure I switched back to El Capitan and ran a short subset of the offending code.
>>
>> use AppleScript version "2.4" -- Yosemite (10.10) or later
>> use framework "Foundation"
>> use framework "AppKit"
>> use scripting additions
>>
>> set soundVolume to 44 as integer # integer as stated in the dictionary
>> delay 2
>>
>> set volume output volume (soundVolume as integer)
>>
>>
>> the events log was :
>>
>> tell current application
>> set volume «class ocid» id «data optr000000006026020080610000» output volume 44
>> Résultat :
>> error "Impossible de convertir «class ocid» id «data optr000000006026020080610000» en type small real." number -1700 from «class ocid» id «data optr000000006026020080610000» to small real
>>
>> exactly as it is under Sierra.
>>
>> If we drop the instruction : use scripting additions
>> the script no longer compile.
>> If we drop the instructions :
>> use framework "Foundation"
>> use framework "AppKit"
>> it compiles but the handler checkModifiers will be unable to run.
>>
>> There is a clear conflict with the frameworks and the instruction : set volume output volume (soundVolume as integer)
>>
>> I am unable to give a workaround.
>> I asked Shane Stanley about that but he is a busy man which post when he has spare time.
>> I guess that Robert will have to be patient.
>>
>>
>> Yvan KOENIG running Sierra 10.12.0 in French (VALLAURIS, France) samedi 24 septembre 2016 21:12:18
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> 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
>
> Robert Poland
> Fort Collins, CO
>
_______________________________________________
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