IR Control Advice

Posted on
Fri Sep 19, 2014 12:44 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: IR Control Advice

Yes, mines been working fine.

Posted on
Fri Mar 20, 2015 3:11 pm
dtich offline
Posts: 798
Joined: Sep 24, 2005

Re: IR Control Advice

question on scripting guys.

finally upgrading ired to ired2.. the object classes have changed in ired2 so script has to be tweaked, but i'm having an issue with syntax. i have a situation where i need to submit to ired the same variable twice, separated by a slash. how do i write this??? never got the hang of escaping. ;)


Code: Select all
i have slashes in my device names, how do i write that so it parses correctly with the same variable? i.e..:


   tell application "iRed2" to perform action (Code irCode of Device myRemote / myRemote)
            
the part in question is the "myRemote / myRemote" part. i need the slash to be quoted as a string in between the two vars, so the resulting string is as in:

   --perform action (Code "MUTE/Z1" of Device "Anthem/D2v/Anthem/D2v”)


(  for reference: myRemote = “Anthem/D2v” ; irCode = “MUTE/Z1”  )


any help appreciated, thanks!!

EDIT: solved, see: viewtopic.php?f=4&t=13681
thx.

Who is online

Users browsing this forum: No registered users and 9 guests