Remote Buddy FAQ

How can I find out the unique identifiers of Behaviours and globally available actions?

You'll be getting an overview over the information you are looking for when executing the following script in the AppleScript Editor:

tell application "Remote Buddy"
	behaviourlist
	set listOfBehaviourIdentifiers to result
	set retList to ""
	
	repeat with behaviourIdentifier in listOfBehaviourIdentifiers
		behaviourcore accessor "plainName" identifier behaviourIdentifier
		set plainName to result
		
		try
			behaviourlist allGlobalActionsForIdentifier behaviourIdentifier
			set listOfActionIdentifiers to result
			
			set retList to retList & plainName & " (" & behaviourIdentifier & ")" & "
"
			
			repeat with actionIdentifier in listOfActionIdentifiers
				set retList to retList & actionIdentifier & "
"
				
			end repeat
			set retList to retList & "
"
		end try
	end repeat
	
	(retList)
end tell


Last updated: May 25, 2011 – Filed under: Developers