I just started playing around with an app call Coherence Pro which basically creates standalone "apps" using the google chrome browser which is really quite awesome. No more hunting for the right tab across 100's of tabs!
The problem I'm running into is there doesn’t seem to be a way, that I can find, to click links or use any of the "Google Chrome Control" actions using KM on one of these apps. I tried using both Google Chrome Controls as well as Front Browser Controls neither of which worked.
Basically all I'm looking to do at this point is hook up some hotkey triggers to activate a link in the browser for which I need Document Title, Document URL, and Click Link actions.
My guess is that even though these apps are just google chrome browsers they aren't being recognized as such and therefore none of these actions are working.
These apps are no longer Google Chrome and cannot be addressed as such.
Take one of the apps and drop it on the Apple Script Editor.app – if you get a sdef (scripting dictionary) then you should be able to script the app with AppleScript and JavaScript via AppleScript.
Keyboard Maestro's Chrome actions won't work, but they're basically AppleScript under-the-hood and can be replicated with plain old AppleScript.
Great. Then all we need to know is how to talk to them.
Paste this into the Script Editor.app.
tell application "Finder"
set finderSelectionList to selection as alias list
if length of finderSelectionList = 0 then error "No files were selected in the Finder!"
set theItem to item 1 of finderSelectionList
set itemProperties to properties of theItem
set itemID to id of itemProperties
set the clipboard to itemID
return itemID
end tell
Select one of these apps in the Finder.
Run the script from the Script Editor.
⌘R or the Run button (which looks like a left-pointing triangle.
The app's bundle id will be copied to the clipboard.
Ugh, looks we've hit a road block .... when I try to activate the app it pops the dictionary asking me where the app is. When I select it it changes the script to:
tell application "Google Chrome"
activate
end tell
Thank you for going out of your way to find and test this approach. I remember looking into this a while back and came away with the conclusion that you couldn’t do this on a Mac...so glad to find this bundle.
I got one of these apps up and running however I still haven’t been able to get KM working correctly with these apps. I created some “Front Browser”” but they only seem to work in chrome?
Do I need to use applescript inside of KM to get this working?