Re: Mavericks
Re: Mavericks
- Subject: Re: Mavericks
- From: Ron Reuter <email@hidden>
- Date: Wed, 23 Oct 2013 19:57:29 -0500
Thanks for the suggestion, but that didn't work either. The problem is not with "player state", but with the enums.
I simplified my script for further testing, but still haven't found a (good) solution. Here's the complete script:
use Spotify : application "Spotify"
use AHP : application "Audio Hijack Pro"
player state is playing --> true
player state is paused -- won't compile
Spotify's player state is paused -- won't compile
Spotify's player state is (Spotify's paused) -- won't compile
(*
compile error: “paused” is ambiguous because it is imported from application "Spotify" and application "Audio Hijack Pro".
*)
player state as text is "paused" --> true
-- works, but I'd hate to have to do that! :-)
• Ron
On 23 Oct 2013, at 4:50 PM, Shane Stanley <email@hidden> wrote:
On 24 Oct 2013, at 6:58 AM, Ron Reuter <email@hidden> wrote:
> use Spotify : application "Spotify"
> use AHP : application "Audio Hijack Pro"
> ...
>
> if player state is in {playing, paused} then --> “paused” is ambiguous because it is imported from application "Spotify" and application "Audio Hijack Pro".
>
> I've tried various ways to disambiguate the term in my script, but so far no success other than going back to a "using terms" or "tell" block.
Use the properties you defined:
if Spotify's player state is in ...
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden