Applescripting in Indigo 7

Posted on
Mon Dec 12, 2016 5:57 pm
dz1rfj offline
Posts: 135
Joined: Mar 13, 2016

Applescripting in Indigo 7

HI,

I had this working, and it took me an aour to find this soultion, but since upgrading, it seems broken.

Has this been depreciated with Indigo 7 ?

If someone can share a python script that will allow me to loop a specific song / file number in a specific playlist, in iTunes, not loop the entire playlist, just a particular FIRE MP3 (siren) , that would be very helpful.
Code: Select all
tell application "iTunes"
   
   set the sound volume to 100
   play track 1 of user playlist "Fire"
   
   tell application "System Events" to tell process "iTunes"'s menu bar 1's menu bar item "Controls"'s menu 1's menu item "Repeat"'s menu 1
      #perform action "AXPress" of menu item "Off"
      perform action "AXPress" of menu item "All"
      #perform action "AXPress" of menu item "One"
   end tell
   
end tell

Thanks!

Thanks
-Brian

Posted on
Tue Dec 13, 2016 2:17 am
jay (support) offline
Site Admin
User avatar
Posts: 18200
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Applescripting in Indigo 7

Your script doesn't target Indigo at all so I'm not sure how Indigo 7 could have broken it.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Tue Dec 13, 2016 7:51 am
Different Computers offline
User avatar
Posts: 2533
Joined: Jan 02, 2016
Location: East Coast

Re: Applescripting in Indigo 7

is it an external AppleScript that's stored in the Indigo 6 folder structure? I7 may not be able to find it.

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Sun Aug 13, 2017 3:00 pm
jltnol offline
Posts: 989
Joined: Oct 15, 2013

Re: Applescripting in Indigo 7

Just curious.. Not using AppleScript to control Indigo, but when I try this:

Code: Select all
tell application "IndigoServer"
   brighten device named "Kitchen-Bar" to 15
end tell


I get an error message: Application isn't running....

Posted on
Mon Aug 14, 2017 1:48 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Applescripting in Indigo 7

That is an osx bug. Has been discussed many times before. No real solution besides restart.


Sent from my iPhone using Tapatalk

Posted on
Mon Aug 14, 2017 4:20 am
Japple55 offline
Posts: 224
Joined: Sep 26, 2015
Location: NE Tennessee

Re: Applescripting in Indigo 7

It's discussed here with some workarounds: viewtopic.php?f=4&t=12857&p=87000#p87000

What worked for me was:

So - bottom line: if you see this error first make sure you have no other copies of the IndigoServer.app on any mounted hard drive. This would likely be because you have previous versions still installed, so look in these locations:

/Library/Application Support/Perceptive Automation/Indigo 6/


But not until I rebooted the machine and Indigo.

Jim

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 5 guests

cron