Automator

RSS for tag

Support the development of actions for the Automator application and the ability to run a workflow in developer applications using Automator.

Automator Documentation

Posts under Automator tag

13 Posts
Sort by:
Post not yet marked as solved
1 Replies
222 Views
Hi, I have an app generated by using osacompile on an applescript file. The app works fine as expected. However, when I try to sign it, I get two errors as in the screen shot below: After some googling around, I deleted the _CodeSignature folder in the .app directory but still signing fails with the same error. So, I would like to know two things: Is it possible to sign .app files created using osacompile as in my case? If yes, what am I missing and how to resolve my situation. Thanks,
Posted
by saxenark.
Last updated
.
Post not yet marked as solved
0 Replies
377 Views
I am trying to import an Automator workflow into the Shortcuts app. I have tried all the methods [suggested by Apple] but all fail with this error: I have copied the workflow to various folders and tried again with the same result. Is this a permissions issue ? I'm on macOS 14.1 Sonoma with Shortcuts 7.0.
Posted
by Crudgle.
Last updated
.
Post not yet marked as solved
0 Replies
267 Views
Firstly, I'm a novice in automator & applescript. I have however managed to create an automator workflow that falls over at the second iteration. What I am trying to do is the following: working in Sierra I have an old app (Discus) that has an export capability for graphics that reside in the app. It appears that Discus does not have either AppleScript or Automator built in. The workflow has the following steps: move cursor direction right one keystroke (working) / select export from the menu (working) / keystroke a unique file name for the export file (not working) / save to folder (working) / Loop x1000 (working). At the moment the workflow falls over the second time it attempts to name the export file. I cannot find a way to auto create a new name for each iteration. Consequently Discus hangs waiting for a decision on whether to overwrite the initial exported file or to create a new filename. It would be beneficial to create a new file names using sequential numbering. There is an action for doing this in the finder, however this does not work in the workflow as I presume the file saving action is taking place in Discus, not in the finder. Any ideas on how to overcome this, or evenif it's possible. It may be that Automator in Sierra is more limited in capability than in current Mac OS? Thanks
Posted
by Ade123.
Last updated
.
Post not yet marked as solved
2 Replies
427 Views
I'm trying to automate making accurate alarms to help me estimate when I need to leave to be on time for meetings. To do this accurately, I want to access Apple Maps (or Google Maps services, or ...) to get an estimate of driving times given current driving conditions. So I'd like to query the maps service reasonably close to departure time. (If I get an estimate on Sunday evening at for an appoint on Monday at rush hour leaving from a different location, it's obviously going to be inaccurate.) Ideally, I'd like to directly access my Apple Calendar to get the appointments and their locations. But if that's too complicated, I'll just create a formatted text file or sqlite file or whatever with the information. I've considered doing this with Shortcuts, Automator, AppleScript, JXA, Hammerspoon, Python, etc. It seems that each technology has part of what I need, but not all. But I don't have deep knowledge of any of them. Perhaps someone can advise me on the most appropriate technology. Here are my impressions: Shortcuts: Has built in access to driving time estimates and Calendar events, but awkward and possibly too limited in terms of program logic. Automator: Is more capable than Shortcuts in some ways, less in others. AppleScript: I don't know. JXA: I prefer Javascript to AppleScript, but it seems hard to find good documentation. Python: I'm quite proficient in Python, but I don't know if I can access things like Calendar events. If not, I'm willing to keep a separate file manually. (I could perhaps create the Calendar events from this, except that some appointments are set up by my work.) Hammerspoon: I don't have any experience with it and don't know it's capabilities. Any advice appreciated.
Posted
by Addle.
Last updated
.
Post not yet marked as solved
0 Replies
324 Views
I m using Mac Automator app to add new actions to the right click quick menu for files and folder. As can we seen in the image we have a number of actions available for mail app, Calendar, photos and other apps. I wanted to know whether something similar can be done for my app. I wanted to list my app in the library and provide some similar action options. Can it be done?
Posted Last updated
.
Post not yet marked as solved
1 Replies
459 Views
I am currently automating a Flutter app in iOS plateform, and the developer has implemented a CupertinoDatePicker for date selection (screenshot attached). Upon inspecting the element properties, I found the relevant property specifically for the month as well as other selectors. Although I can successfully inspect the element, I encounter an issue when attempting to select a different month using the sendKeys function. I have also attempted to use the JavaScript executor, but unfortunately, it has not resolved the problem. I am currently stuck at this point and seeking assistance. Any suggestions would be greatly appreciated. Thank you in advance. For native apps we were getting type of this datepicker as 'XCUIElementTypePickerWheel' and using send keys we were able to set values. but for flutter iOS app it is not working as well type property we are getting as 'XCUIElementTypeOther' Any suggestions would be greatly appreciated. Thank you in advance. Element Properties: [{“key”:“elementId”,“value”:“54000000-0000-0000-4719-000000000000”,“name”:“elementId”},{“key”:“type”,“value”:“XCUIElementTypeOther”,“name”:“type”},{“key”:“value”,“value”:“7”,“name”:“value”},{“key”:“enabled”,“value”:“true”,“name”:“enabled”},{“key”:“visible”,“value”:“true”,“name”:“visible”},{“key”:“accessible”,“value”:“true”,“name”:“accessible”},{“key”:“x”,“value”:“213”,“name”:“x”},{“key”:“y”,“value”:“553”,“name”:“y”},{“key”:“width”,“value”:“47”,“name”:“width”},{“key”:“height”,“value”:“183”,“name”:“height”},{“key”:“index”,“value”:“3”,“name”:“index”}]
Posted Last updated
.
Post not yet marked as solved
0 Replies
489 Views
Hello, I'm planning on building an app that provides instructions on how to implement Automation for a shortcut that will look for specific message content in messages, and forward it to my app. I want to understand if this method isn't a breach of Apple's terms of use, considering that I intend to have this used in scale (e.g. ~50k app users). Some things to clarify: The content that will be searched in the Messages app will be reviewed and approved by the iPhone user. The iPhone user will be required to manually approve every automation action that occurs The iPhone user will have control to remove any forwarded messages that were approved by mistake or in any case of regret. The iPhone user will be well aware of the actions he makes, and approves in terms of the process and usage of the content by app. Thank you!
Posted
by Amitge.
Last updated
.
Post not yet marked as solved
2 Replies
665 Views
I am a recent convert to the Mac ecosystem, I have a windows batch script from when I was using windows that i would like to adapt to an automator script. It is pretty simple. The goal of is about using ffmpeg to convert media files to the proper WAV format for a sampler I have. Essentially what it does is allow you to right click on a file in a folder, and the script looks through all media files in that folder, then creates a new folder in an exports folder, and converts all the files to 44.1 khz wav files and places them in the few folder. An additional wrinkle of my original script that isn't completely necessary is that it queries you about whether you want to use the original folder name or create a new one. I wonder if y'all can provide me some guidance for adapting this to a bash script for automator. I am pretty new to bash scripts and not exactly an A+ programmer. I already have simple bash scripts working, doing things like creating a directory or other simple terminal like commands, but I haven't quite figured out things like setting variables or getting user input from a pop up terminal. Thanks for any help you could provide! @ECHO OFF for %%I in (.) do set CurrDirName=%%~nxI set CurrDir="%CD%" cd C:\Users\warpi\Desktop\Samples\Octatrack Exports set /p name= Use Parent Folder Name? [Y/N]: if %name%==y (set input=%CurrDirName%) else (set /p input= Folder Name: ) mkdir "%input%" echo Directory Created: "%input%" cd %CurrDir% for %%i in (*.*) do ffmpeg -i "%%i" -ar 44100 "C:\Users\warpi\Desktop\Samples\Octatrack Exports\%input%\%%~ni.wav" ::for %%i in (*.wav) do ffmpeg -i "%%i" -ar 44100 "C:\Users\warpi\Desktop\Samples\Octatrack Exports\%input%\%%~ni.wav" PAUSE
Posted Last updated
.
Post not yet marked as solved
0 Replies
521 Views
Hi, I want to build MacOS app that can add automator print workflow to user directory. everything work on local but not in AppStoreConnect. i have tried including the workflow on the project, but i got processing status in testflight. when i remove the automator workflow from bundle resource and try to push it again to testflight, the build is valid and success. is there something i missed? because processing status is not giving any clue i guess
Posted
by ihwanid.
Last updated
.
Post not yet marked as solved
0 Replies
635 Views
How can I change the screen resolution, with automator, on start up ? i ahve this for now but .... on run tell application "Automator" activate end tell tell application "System Events" tell process "System Preferences" delay 0.5 do shell script "open x-apple.systempreferences:com.apple.Displays-Settings.extension" -- do shell script "resolution_2048x1024_60hz"ght} end tell end tell -- quit application "System Settings" end run
Posted
by mauroad.
Last updated
.
Post not yet marked as solved
4 Replies
609 Views
I have an app on my mac that generates an html file. There are different versions of this file. When the file is generated, Folder Actions triggers a bash script that uploads the file to my web site. This version of the file is wacked. I need to identify this file so I can upload a replacement instead. This version can be identified by the presence of the word JazzKnob. Grep can't find this text. Sed doesn't work either. Neither does awk. How can I successfully identify this file? nowplaying.html
Posted Last updated
.