automator

AppleScript or Automator to click on menus in an application?

孤者浪人 提交于 2019-12-05 11:07:20
I'm not sure if this is do-able via AppleScript and/or Automator…but I'd like to be able to: a) launch an application (I know this can be done pretty easily by AppleScript or Automator) b) once the application is launched, use AppleScript or Automator to select specific menu items. e.g. I'd like to launch Excel 2008 (I have the home/student edition which doesn't come preconfigured for Automator) and then click the "File" menu and click on "open". Any pointers on where to go/look for how to select menu items like this (or if it's even possible at all)? You can "sort of" do this using Automator

Check for active internet connection with Applescript/Automator

萝らか妹 提交于 2019-12-05 09:38:14
I have an Automator workflow to ping a server, and download the latest copy of a schedule that I frequently use. This schedule then is copied to my dropbox so I can view it on my phone. Before the workflow downloads the newest schedule it deletes the old schedule from dropbox. This works well, except when I don't have an active internet connection. When I don't have an active internet connection, the workflow will still open up dropbox, delete the old schedule, and try to download the newest one. Because there is no connection, it doesn't download anything. Then if my connection becomes active

OSX Automator failing to run Python script with modules from shell

时间秒杀一切 提交于 2019-12-05 06:40:45
问题 I am trying to run a Python script that uses a few 3rd party modules (numpy, pandas, Twython) from Run Shell Script in OSX Automator. I wrote a hello_world.py script that runs successfully so I'm certain that the problem is due to the 3rd party modules. In Terminal, I can successfully execute: python Desktop/my_folder/myscript.py , however when I try to run the shell script below, the shell script fails. I run Python 2.7.7 from anaconda distribution. #!/Users/myName/anaconda/bin/python2.7 cd

Automator: How do I use the Choose from List action?

六眼飞鱼酱① 提交于 2019-12-05 04:58:15
I'm trying to create a Service using Automator that simply calls textutil convert. Eventually, I want to be able to right-click a docx file and convert to text, rtf, html, etc. After I right-click I want a very simple popup asking for the desired format. I see the Choose from List action. It has no options. Somewhere I got the idea to make the input of Choose from List be Get Specified Text. I then tried putting my list of values in Get Specified Text. However, when I run it, I only get one line. I've tried one item per line, comma-delimited, space-delimited and even surrounding with curly

How do I use the current folder name without a path as a variable in automator in Mac?

孤者浪人 提交于 2019-12-04 19:23:06
问题 I am using Mac OSX 10.8.3. I have a workflow in Automator set up that is as follows: Ask for Finder Items Get Folder Contents Make Sequential Move Finder Items The purpose of the workflow is to automate renaming a bunch of photos that I have saved in folders then move them to an new folder. I want to grab the foldername and stick it in a variable and use that variable in the "new name box" in the Make Sequential section of the work flow (see attached) image. How do I grab just the folder name

How to automate extracting pages from a PDF using AppleScript and Acrobat Pro?

微笑、不失礼 提交于 2019-12-04 14:10:59
I'm new to AppleScript, but I am trying to create a script that will go through all PDFs in a folder extracting the pages into separate files. My plan is to use a combination of Automator and AppleScript. My AppleScript so far is: tell application "Adobe Acrobat Pro" open theFile set numPages to (count active doc each page) --execute the extraction here end tell The command in Acrobat Pro is under Options > Extract Pages... , where I can specify the page range and to extract to separate files. However, I can't seem to find a way to do this with the Acrobat Pro Dictionary in AppleScript. There

How to use Automator to bring window to front?

青春壹個敷衍的年華 提交于 2019-12-04 09:32:49
I'm using a Mac, OSX 10.6 and I have a function in a desktop application that I want to automate. Manually I press Command+R wait for the application to read some data form a physical device for 1 minute, then press command+R again to take another reading (at this point it asks me if I want to save the data, so I press tab, tab and then space bar to select to save the data. I do this 3 times in total, so I want to automate the 3 times, so I can walk away from the computer and it will read 3 times automatically. Is automator the best way to do this? I've tried to do this already in automator by

Remove last argument from argument list of shell script (bash)

南楼画角 提交于 2019-12-04 07:58:28
问题 This question concerns a bash script that is run in automator osx. I am using automator actions to get and filter a bunch of file references from the finder. Then I append to that list the name of the parent folder, also via an automator action. Automator then feeds these arguments to an action called "run shell script". I am not sure exactly how automator invokes the script but the argument list looks like this when echoed with: echo "$@" /Volumes/G-Raid/Online/WAV_TEST/Testbok 50/01/01000

Automator + Applescript how to: new Desktop (open Calendar and Reminders in it)

≯℡__Kan透↙ 提交于 2019-12-04 07:07:49
The title is what I'm trying to achieve. In Automator, I've tried to simply record the actions of opening a new desktop, and then opening the apps in it -- but I get the The action 'Watch Me Do' encountered an error. Check the actionʼs properties and try running the workflow again Furthermore, if I do it in this way, the action that is recorded is "Click the Desktop 4 button". Similarly, I googled and found Applescripts that create specific Desktops (e.g. Desktop 3) but I always have a different amount of Desktops open. So I want the Workflow to simply make a new Desktop regardless of the

Automator script to rename files on Mac OS X [closed]

只谈情不闲聊 提交于 2019-12-03 16:22:21
Is there an easy way to use Automator on OS X to replace spaces in filenames with underscores? I've set up a service called "Rename Items…" that can be run by selecting any item (or batch of items) in the Finder, right clicking, and then selecting Services > Rename Items… This is useful as it will provide a small popup window when you perform the action, where you can choose whatever settings you want (for example, you can make the sequence sequential, replace text, add text, etc.) In order to create something similar for yourself: launch Automator when prompted, choose the "Service" template.