Reminders - Open List in New Window - applescript

I would like to update the following AppleScript code to open one of my Reminders lists in a new window.
Any suggestions? Thx Gianandrea
tell application "System Events" to tell process "Reminders"
click menu item "Open List in New Window" of menu 1 of menu bar item "Window" of menu bar 1
click menu item "Reminders" of menu 1 of menu bar item "Window" of menu bar 1>
end tell

Related

OSX tick menu bar checkbox

For my application MuteSpotifyAds I wan't to add a feature that automatically enables the Private Session mode.
To do so, I wan't to toggle the menu bar item Private Session in the menu Spotify of the OSX menu bar. I use the following applescript, which works:
Source: https://stackoverflow.com/a/16497564/6286431
tell application "System Events" to tell process "Spotify"
tell menu bar item 2 of menu bar 0
click
click menu item "Private Session" of menu 1
end tell
end tell
The problem is that I have to check if the checkbox is already ticked, because else I would disable the Private Session.
Is there a way to check if the menu checkbox is already ticked?
I've already tried this, but seems to only work for checkboxes in actual windows.
If you have a solution that does not use applescript, that's also good!
The information if the menu item is checked is in the attribute "AXMenuItemMarkChar" of the menu item
tell application "System Events" to tell process "Spotify"
tell menu bar item 2 of menu bar 1 -- AppleScript indexes are 1-based
tell menu item "Private Session" of menu 1
set isChecked to value of attribute "AXMenuItemMarkChar" is "✓"
if not isChecked then click it
end tell
end tell
end tell

How to click menu item of menu of menu bar item of menu bar in Apple Script?

The menu bar:
The UI Brower:
Apple Script:
tell application "System Events"
tell process "MacID"
click menu item 9 of menu 1 of menu bar item 1 of menu bar 2
end tell
end tell
I dont know how to do it with MacID and menu items without Command Shortkeys but here is how to do it with keystroke:
tell application "System Events" keystroke "(key)" using command down

AppleScript: Menu bar item click (but no AXDescription)

I'd like to AppleScript to click a menu bar icon (not a system process) and then click on one of the menu items. I'm using OS X 10.10.
I've read that I can use the Accessibility Inspector to find the AXDescription of the item, however, I can't find it anywhere in the inspector (in fact none of the items I inspected seemed to have this property).
I also tried the method described here but get an error on line 10:
ignoring application responses
tell application "System Events" to tell process "Webcam Settings"
click menu bar item 1 of menu bar 2
end tell
end ignoring
do shell script "killall System\\ Events"
delay 0.1
tell application "System Events" to tell process "Webcam Settings"
tell menu bar item 1 of menu bar 2
click menu item "Show Webcam Settings Panel" of menu 1
end tell
end tell
System Events got an error: Can’t get menu 1 of menu bar item 1 of menu bar 2 of process "Webcam Settings". Invalid index.
There are some menu bar apps which you can click and show menu with applescript regardless of if they appear in dock.
But I am afraid you can’t access the menubar of “Webcam Settings” with applescript.
Because there isn’t key named “isAccessbiliyFocused” in the attributes.
Menu bar apps you can show their menu with applescript have that key and its value is “Yes”.
I am not quite sure about my answer but as far as I investigate this issue, my answer is probably right.

Applescript Adobe Acrobat Pro Save Image To PDF

I am trying to compile an applescript to get Adobe Acrobat Pro to save a selected image within a PDF to a JPEG.
This is what I have so far but I am not getting it to work.
Many thanks
Darryl
tell application "Adobe Acrobat Pro"
activate -- bring up acrobat
tell application "System Events"
tell process "Acrobat"
click menu item "Save As" of menu 1 of menu bar item "File" of menu bar 1
click menu item "Image" of menu 1 of menu bar item "Save As"
click menu item "JPEG" of menu 1 of menu bar item "Image" of menu bar 1
end tell
end tell
end tell
Give this a try
activate application "Adobe Acrobat Pro"
tell application "System Events"
tell process "Acrobat"
click menu item "JPEG" of menu 1 of menu item "Image" of menu 1 of menu item "Save As" of menu 1 of menu bar item "File" of menu bar 1
click button "Save" of window "Save As"
end tell
end tell
Tested on OS X 10.9.4 | Adobe Acrobat Pro 10.1.10
One issue... My excitement was a little premature...
This saves the whole page. If selecting an image in Acrobat and right clicking on it and selecting save image. Please see if you have a work around this.

applescript for Adobe acrobat pro - running action from action wizard

I have a doubt in adobe acrobat pro..
I m using applescript to run a action from Adobe acrobat Pro => Tools => "action wizard".
actually it does only the first step in choosing the action "Rajni" from the action wizard,
but i cant click the button "Next" seen in the window, to go to the next step... and then click close button....
could any body help on this...
tell application "System Events"
tell application process "Acrobat"
tell application "Adobe Acrobat Pro" to activate
click the menu item "Rajni" of menu 1 of menu item "Action Wizard" of the menu "File" of menu bar 1
click button "Next" of window "Action: Rajni" -- here is the problem ........
end tell
end tell
Many thanks...
try to add some delay before clicking window.
click the menu item "Rajni" of menu 1 of menu item "Action Wizard" of the menu "File" of menu bar 1
delay 2
click button "Next" of window "Rajni"

Resources