Sample Header Ad - 728x90

Hide a Fluid app toolbar using applescript

1 vote
1 answer
586 views
I've been trying to hide the toolbar from a Fluid app application using applescript, but it doesn't seems to be working at all. I've also tried on Safari (fluid apps are built on top of safari web engine). I'm able to "click" on every menu item, but not on that one. The script seems to be finding the menu item there, as I tried to run another piece of code inside that conditional in specific. So this is what i've been doing: tell application "System Events" tell process "Test App" if menu item "Hide Status Bar" of menu "View" of menu bar 1 exists then click menu item "Hide Status Bar" of menu "View" of menu bar 1 end if if menu item "Hide Bookmark Bar" of menu "View" of menu bar 1 exists then click menu item "Hide Bookmark Bar" of menu "View" of menu bar 1 end if if menu item "Hide Tab Bar" of menu "View" of menu bar 1 exists then click menu item "Hide Tab Bar" of menu "View" of menu bar 1 end if if menu item "Hide Toolbar" of menu "View" of menu bar 1 exists then click menu item "Hide Toolbar" of menu "View" of menu bar 1 end if end tell end tell I'm not quite experienced on AppleScript by the way, so if I'm doing something wrong, please, correct me =] Thanks in advance.
Asked by ghaschel (131 rep)
Mar 13, 2016, 01:29 AM
Last activity: Mar 13, 2016, 02:23 AM