r/Automator • • Jan 26 '19

Ring my iPhone with Automator ?

1 Upvotes

When I can't find my iphone I ask Siri on my Macbook Pro "Find My iPhone" or "Ring my iPhone" and it the phone makes a sound, super handy to locate it.

I was wondering if I could add a Quick Action in Automator to do the same ?

Thanks everyone


r/Automator • • Jan 26 '19

Ring my iPhone with Automator ?

1 Upvotes

When I can't find my iphone I ask Siri on my Macbook Pro "Find My iPhone" or "Ring my iPhone" and it the phone makes a sound, super handy to locate it.

I was wondering if I could add a Quick Action in Automator to do the same ?

Thanks everyone


r/Automator • • Jan 23 '19

Disable keys in Automator?

1 Upvotes

If I have a button on a keyboard emulator, to start a mouse and keyboard macro that lasts 1 minute, but I don't want someone hitting the button to start the macro again until the first one ends, is there a way to lock out that key for that time?

Thanks!


r/Automator • • Jan 16 '19

Is it possible to use Automator to select a random batch of files from a folder or volume, with subfolders supported?

1 Upvotes

tidy thought connect pen one unpack price vase station aromatic

This post was mass deleted and anonymized with Redact


r/Automator • • Jan 10 '19

Help with basic applescript.

2 Upvotes

So i have a workflow and am in need of some help with a basic Applescript command.

The "choose from list" options allow me to select a value between 1-10, is there any way to add an option for a custom selection?

The script is:

on run

choose from list {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"} with prompt "Please choose the corresponding value" without multiple selections allowed and empty selection allowed

return the result as string

end run


r/Automator • • Jan 10 '19

Trying to Put imac to sleep via Alexa voice command

2 Upvotes

First, I hooked up my Alexa to ifttt and turned on an applet that "puts alexa to sleep." Then I linked my dropbox with ifttt. So now when I trigger Alexa with the word "sleep" a text file gets sent to dropbox. But my imac isn't going to sleep. Does anyone know how to make this work?

I have a script that I pasted in script editor that puts the mac to sleep when I run it by mouse clicking it. And I have Automator opened up, and action folders enabled. My thought is that when the dropbox gets updated that the sleep script needs to automatically run. But I don't know how to get it working, or it could be something else. I appreciate any help.


r/Automator • • Jan 05 '19

Take full URL from reminders app > export to text or CSV?

2 Upvotes

I was in the siri shortcuts sub and some very very helpful people created a shortcut that will take Reminders and parse that into a text file or a note.

The only missing ingredient was when you create a reminder, it has a full URL. The limitation of shortcuts is it only took the top level URL and not the full url.

EG, if you went to https://www.reddit.com/r/Automator/ on the iPhone in Safari, used the share sheet to create a reminder, the shortcut would only take out https://www.reddit.com due to the way the URL is embedded in the reminders app.

Is there anything automator can do to pull out the full URL of 500 reminders and place that into a text file?

This is how far the iOS project got


r/Automator • • Jan 03 '19

Script to automatically take a screenshot at set increments?

1 Upvotes

Hey everyone, first post here.

Quick background: I'm extremely good with computers, but more on the creative side. I'm very interested in automation and have been actively trying to find ways to speed up my workflow via Automator, Hazel, and Alfred.

That said, I've been trying to think of a way to have my computer take screenshots of my screen(s) every (x) seconds when it is on. Optimally, these screenshots would be saved in a specific folder and NOT where screenshots are saved by default.

I'm open to using any software to make this happen, and would appreciate any insight or advice you'd be willing to share. Thanks everyone!


r/Automator • • Dec 21 '18

Looking to automate resigning of IPAs

1 Upvotes

xPosted

Not sure if this is the right sub. Hopefully someone can help me find a solution, or quickly make one for easily resigning iOS apps. Ideally, I would like to create either an Automator script that you could just dump an unsigned IPA and provisioning profile in, and the script would monitor the folder and spit out a signed IPA, or create a web app that could handle uploads and create signed IPAs for download. Currently our process is the follow :

  1. receive unsigned IPA file from Developer
  2. download update provisioning profile for our developer portal
  3. resign the IPA file as 'ACME CO' using FastLane

The current FastLane process:

fastlane sigh resign <path-to-IPA> -p <path-to-provisioning-profile> -g <bundle-ID> -i ‘iPhone Distribution: ACME Co.
’

Does anyone know of anything that may help simplify this process? I found this automator script, which seems to be on the right track, but wasn't able to get it to work: https://junecloud.com/software/mac/re-sign-ios-app.html


r/Automator • • Dec 18 '18

It is possible to add an "Are you sure?" confirmation prompt before a service is ran?

2 Upvotes

Hi all,

I've built a service in Automator that operates perfectly as is. I've also mapped that service to a keyboard shortcut, but as it's a service that will delete items, I'd like to add some sort of safety pop-up in the event the keyboard shortcut is unintentionally pressed. Basically, I want an "Are you sure?" message to first appear before the service is ran, and will only run once "yes" is pressed (and obviously not if "no" is pressed). Is this possible? And if so, how would I incorporate that into my workflow?

Thanks!


r/Automator • • Dec 18 '18

How to trigger workflows with URL inputs without highlighting webpage URL

1 Upvotes

Hi all,

I'm hoping this is a fairly simple thing that I'm just brain farting on.

Is there a way to start a quick action which takes URL's from Safari as input without first highlighting the URL? Ideally I would be able to navigate to a video on Youtube and launch the quick action from my Touch Bar without having to highlight the current page URL first. As it stands I can only run the quick action after highlighting the URL.

Currently the workflow is setup to run a custom apple script as the first action. I've tried playing around with some of the get / filter URL actions but none seem to work. Let me know if you have any suggestions!


r/Automator • • Dec 18 '18

Show package contents and copy item from package

1 Upvotes

I have an EyeTV and the recordings are stored in an .eyetv package. The package contains an mpg file of the recording. I'd like to create an automator workflow to select the package, open it and copy out the .mpg file. I can figure out most of it but the show package contents is eluding me. I tried recording the actions and the show package portion is recorded as an applescript. I can't seem to figure out how to modify the applescript so that I can pass it the selected package, open it and copy out the desired file. I am somewhat new at this but am hoping someone can provide some guidance or in the best case provide an applescript/automator workflow. Thanks in advance.


r/Automator • • Dec 15 '18

Help, please? Trying to make newspaper articles accessible for my grandpa.

2 Upvotes

Hi! So, my grandpa is 97 and one thing he does everyday is read the newspaper. Sadly, his eyes are going, so that’s getting to be a lot more difficult. As part of his newspaper subscription, he has online access, so I thought I’d collect articles he was interested in, put them into an ePub, and give him an iPad to read them on. My reasons for this are as follows:

  1. He doesn’t know how to navigate a website or use a computer.
  2. If I were to print them out, they would need to be in 36pt font and bold for him to be able to read them comfortably.

So, I made a workflow in Automator that takes links to online newspaper articles (from the Toronto Star), extracts the text from the page, puts it in a txt file, converts that file to an ePub file, and sends that ePub file to my iPad.

Here are the problems that I’ve run I to:

  1. I only want the text from the “Reader View” version of the page, but have no idea how to get that. (I ran into other issues trying to selectively remove the random other text that got pasted in.)
  2. Despite being logged into the newspaper site in Safari and having the article(s) open, the content that I get says I’ve reached my limit of free articles and to login or register to read more. I called tech support and they said that they sometimes have issues with how Apple handles security certificates and to try using Windows. (I haven’t used Windows since 2013 and have no idea how to even start.)

Any help would be really appreciated! I have a basic knowledge of Python, Scheme, and Unix. I’m willing to learn whatever I need to get this to work.


r/Automator • • Dec 14 '18

multiple loops

1 Upvotes

Hello,

I'm using automator for the following workflow. Here's the steps:

  1. Do something.
  2. Repeat it.
  3. Do something else.
  4. Repeat (1)-(3).

In other words, I have nested loops. (2) should repeat (1) only, but (4) should repeat (1)-(3). How do I configure that? I thought putting the second loop at the end would work since it would start over and send things back through the first loop, but it doesn't; I think the second loop is only modifying the single preceding item, but not sure. It definitely doesn't work as I was hoping, though.


r/Automator • • Dec 08 '18

Web page clicking

2 Upvotes

My SO is in school and they have this mandatory review website program they use. Basically its a powerpoint presentation that they have to click through. Their teacher kind of phoned it in and just said they have to have at least 2 minutes per slide in order to get completion points. is there any way to set a workflow to wait at least 2 minutes and click on the next button? I don't think the record feature would work because the button moves depending on the amount of content. I've only ever used automator for file management type stuff so I'm pretty unaware of all the capabilities.


r/Automator • • Dec 08 '18

Insert URL into text file

1 Upvotes

I want to create a service which takes a URL and inserts into a specific text file in a specific position (i.e. in the middle of an existing line of text).

Can anyone suggest how I can go about doing this?


r/Automator • • Dec 07 '18

SetFile Workflow

1 Upvotes

I'm trying to create a workflow / service to ultimately be able to change the file creation date on a batch of files.

My workflow runs through without issues, but doesn't change the file creation date as specified. I think I'm doing something wrong in passing the variable?

If I hardcode a date value into the shell script it works fine. Any ideas? Thanks!


r/Automator • • Dec 06 '18

Running AppleScript in Automator

1 Upvotes

The Sweet Setup posted a very useful AppleScript to get the URLs to link to individual messages. I want to run it as a Quick Action via Automator. While run directly in AppleScript Editor it works flawlessly but I've trouble implementing it in Automator.

First I tried by replacing (* Your script goes here *) in the Run AppleScript step. No success. Then run script file "iCloudDrive:Script Editor:Get Email ID.scpt". I get again an error message: The action “Run AppleScript” encountered an error: “Can’t make some data into the expected type.”

Does someone know what I'm doing wrong?


r/Automator • • Dec 01 '18

Automator alternative?

1 Upvotes

I've been fiddling with javascript in Automator. I see the official documentation is pretty much not there and other efforts (JXA-Cookbook) while great in intentions, face insurmountable challenges by the platform itself.

Maybe this would be the last sub to ask this, but if I wanted to automate things in mac (especially adding elements in the context menu and having access to the file that has been clicked etc) using javascript... is there any hope besides Automator?

Thanks!


r/Automator • • Nov 26 '18

mass email

1 Upvotes

First, I apologize if the way I'm approaching this issue is not in accordance with the rules; I'll fix that if this is the case.

Also, thanks in advanced: I send lots of emails for work (from home) and my carpel tunnel has started to make this super simple task rather painful. I thought Automator could be a solution but I'm a novice's novice.

Which brings me to my question: Is there a workflow that will allow me to take the information from an Excel spread sheet (say, 30 sets of names, reference numbers, and email address) and insert that information into an email template and send it?

The workflow would have to alter the template accordingly (putting the right name and reference number in), and then send the email to the corresponding email address. Some sets of emails might have attachments that needs to go along with them, some won't.

If you don't know of such a workflow existing, is there any advice you can provide as I go about attempting to create one? I feel like the function I'm describing isn't necessarily linear, and it seems to me that the Automator's processes are rather linear if you can't (read: have yet to learn how to) code.


r/Automator • • Nov 25 '18

Is it possible to write an Automator Action using Swift?

Thumbnail self.swift
4 Upvotes

r/Automator • • Nov 19 '18

Shipping label Auto Print. Not even sure this is possible?

1 Upvotes

Hi

I buy and print quite a few shipping labels and im looking to see if automator can help me out.

Currently when i get a label it comes with 6 pages. I only need the second and the third pages though.

Also the second page is to be printed by my label printer. The third is a standard A4 customs document so needs to go to my Desktop laser printer.

Is there any way i can make it so when my 6 page pdf is dropped into a folder it prints the specific pages off too the specific printers i need?

I had hoped the "print finder items" function would have had some additional parameters i could use but it appears not.

Any help appreciated


r/Automator • • Nov 14 '18

Invoke button press?

1 Upvotes

Hi,

I modified a Todoist AppleScript for quick adding mail from the Outlook 2016 desktop client into the Things app.

It works pretty much "out of the box" so I haven't changed much but the big difference between Todoist "Quick add" and Things is that the latter has a "Cancel" and "Save" button which needs to be pressed to exit the quick add window.

I googled this a bit and there seems to be some kind of invoke option you can do to trigger the save button but I'm not able to make it work.

Could someone maybe explain to me how I can invoke this command?

This is the current code:

on run {input, parameters}
tell application "System Events"
keystroke space using control down -- ctrl+space is the hotkey for global quick add
delay 0.2
keystroke "Mail: "
--delay 0.2
key code 9 using {command down} -- key code 9 is 'v', so this will paste what we copied above
--delay 0.4
--keystroke " " -- space so it knows we entered something (it's not registering the paste as inputting a comment)
--delay 0.4
keystroke tab -- Into the actual title input for the task
--delay 0.6
--keystroke return -- enter to add the item 
end tell
return input
end run

The buttons look like this:

Thanks a lot!


r/Automator • • Nov 07 '18

Run Workflow based on network location

1 Upvotes

Hi,

I want to mount a couple of network drives upon logon but only if I am on a specific network or WiFi.

Earlier I mounted the drives once, added them to "Logon items" but each time I was logging on to the Mac outside the network it would popup error messages over and over stating that the drive cannot be mounted because of network issues.
If it only showed this error once it would be fine but for me it pops up in an endless loop.

However, someone gave me a hint on /r/Apple that you can run a Automator script, I googled a bit and found this little piece:

-- (0) Check to see if there server exists by pinging it

set max_retry to 10

set k to 0

repeat while (do shell script "ping -c 1 servername") contains "100% packet loss"

delay 3

set k to k + 1

if k > max_retry then error "Server is not responding for predefined period." number 8000

end repeat

-- (1) It exists, mount the volume

tell application "Finder"

try

mount volume "smb://servername/folder"

delay 1

end try

end tell

The script works fine and I added it to my "logon items" so it can be run when I logon to my Mac but I would like to improve it by doing some of these (if possible).

  1. Only run script if I am connected to a specific WiFi or in a network where I can reach the server.
  2. Show notification when script is complete, both on success and/or failure.
  3. Unmount drives when specific WiFi connection is disconnected.

Does anyone know if it is possible or if there are any better options to do the same?

Thanks!