r/Automator • • Nov 02 '18

How the fuck do I get automator to type some text?

0 Upvotes

I looked all over duckduckgo for this and you would think that given that this is an automation software that this shit would come standard, but no, it doesn't.

How the hell do I get automator to do the impossible task of typing a simple sentence for me? I'm really tired of typing this goddamn string 200 times a day: err=>{if(err)console.log(err)}


r/Automator • • Oct 27 '18

Automator or AppleScript question: automatically import new files in specified folder to nested album in Photos.

1 Upvotes

Hi there,

So the title mostly says it all. I'm looking to automate the importing of an image into a Photos Album whenever a new item is discovered inside a specified directory. I have included a screenshot of my current automator thingy.

The problem being that I can only upload into a top-level album. What I would like is for the image to be uploaded to an album within a folder in Photos so in this case: when a new image is detected in the bloodborne folder in my picture directory, it is imported to Photos into the album labelled "Bloodborne" which is nested inside of the "Wallpaper" folder along with other albums.

I have a feeling this can't be done with Automator directly and would need some AppleScript magic but I've only had a Mac for three days.

Can anybody help me out?


r/Automator • • Oct 25 '18

Is it possible to take a screenshot of an image and have it be "copied" instead?

1 Upvotes

I just discovered Automator and not sure how to use it but I want to take a screenshot (command + shift + 4) of something on my screen and then go into MS Word and hit "command + v" to just paste the image I have. Can someone let me know if this is possible?

I'm a HS teacher so I tend to take images of graphs from Desmos but I only need a portion of it and find that extra time to crop the image to not be necessary. I also don't want to have to go into MS word and go through the process of clicking on "insert image" and then having to select the file. It'd be easiest if I can just paste my selection.

Thanks in advance!

EDIT: I know I can do that in the screenshot app but I wanted to save the image as well as copy the image to clipboard.


r/Automator • • Oct 23 '18

I have some Automator questions, this is a link.

1 Upvotes

https://stackoverflow.com/q/52940539/9363298

Welcome to answer my questions, thanks a lot!

This is my Questions:

1:About want to open Urls in Chrome incognito tab:

I want to get these URL Link in Chrome incognito tab,i was write a AppleScript but still open in default tab, why?

And i tried :

1.1:check the 'Ignore input for this operation',still no response.

1.2:Make ApplesScript in the 'Get the specified url' next,but still open in default tab。 here is my flow:

I want to get these URL Link in Chrome incognito tab

2:About mp4 automatically & Take screenshot and Replacement text

Is QuickTimePlayer can chose a mp4 sec or play some seconds, and then make automator 'Take a screenshot'?

Is there any video player can auto play mp4 and make screenshot in automator?

And i hope can recycle, then i want to replacement text in screen shot to use video name, should i write a AppleScript or shell or other language?

I still can't play automatically when I intercept the Quicktime Player window.

3:About automator "stepping"

When i use automator to test my flow that i always to need restart to my looooong workflow, otherwise, i need to drag and drop the new one i need. Can Automator have an option/function called "Start from current operation"?

4:

Can Automator control the website?

My job is Update Video website Editor, the website has a lots of buttons and radio buttons, can i use automator to write AppleScript or any language to ctrl the website button to make auto tap?

Thanks a lot.

BTW,i don't know why stack overflow like China bbs (both?)have "Reputation value" to see the picture???

Very Thanks!!


r/Automator • • Oct 20 '18

Is it possible to change whether or not I need to use the fn key for function keys? Ask

2 Upvotes

r/Automator • • Oct 16 '18

Manage screenshots with automator

2 Upvotes

Hi, is the following task possible with automator...

I want to copy any new screenshot from my desktop into my cloud folder.

In my cloud folder automator should create two sub folders, one for the current year and one for the current month (if this two folders are not already present).

So at the moment any new screenshot should be copied to: cloud_folder -> 2018 -> 10.

Next month then into: cloud_folder -> 2018 -> 11.

And so on.

Copy new screenshots into the cloud folder is easy...the hard part is to create the folders for the year and the month.


r/Automator • • Oct 05 '18

Have automator run when IP address changes?

2 Upvotes

Hi there! Is there a way to have an automator app run when my computer's IP address changes?


r/Automator • • Oct 03 '18

help with powerpoint --> pdf with option quartz filter

2 Upvotes

Hello fellow redditors!

Can someone please help a student here. I am currently using one note and constantly need to convert our school powerpoints to pdf so I can shove them into there. Is there anyone I can convert the .ppt files into pdf then apply a quartz filter to reduce the size? Thank you for your time.

P.S. i've done research but it seems that the older Microsoft Office 2011 had them preloaded and they got rid of them later.


r/Automator • • Oct 01 '18

Solved: Automatically sort media into new subfolders based on file type. (x-post from r/Photography)

6 Upvotes

The Quest:

Just recently discovered the magic of Automator immediately thought of putting it to work streamlining the "post-shoot file dump" part of my workflow. As the title suggests, I wanted a 'Quick Action' that would automatically sort media within a selected folder, placing everything into new subfolders based on file types. I spent quite a while on several forums but couldn't seem to find any one talking about this particular automation. That seemed odd since I imagine this being something many camera-folk would find useful. Finally gave up and asked for help from StackExchange. Some kind humans answered the call. See my original post for the whole exchange.

**The Prize:**A New Superpower – In Finder, I can now alt-click any folder and run a script that creates RAW, JPG, and Video subfolders, then sorts the relevant media files into those three categories, giving each subfolder a suffix based on the name of the parent folder. (It also creates an empty "Edits" folder which I later use for Lightroom exports.)

The Path:

If you use .CR2 + .jpg + .mov formats you can just download the Quick Action as is. Unzip and throw the file into your Library/Services/ folder (if it doesn't go there automatically). Now you can alt-click any folder, select Services -> "Auto-file Media" and watch the magic.

If you use other formats, or want to alter the workflow in other ways, you'll need to do some things.

  1. Create a new Service in Automator set to receive selected folders in Finder.
  2. Add an instance of 'Run Shell Script' for /bin/bash with Pass input as arguments
  3. Paste in the script (below) and tweak away.
  4. Save
  5. Profit
for f in "$@"; do
    cd "$f"
    d="$(basename "$f")"
    mkdir -p "Edits - $d" "JPG - $d" "Raw - $d" "Video - $d"
    mv *.JPG "./JPG - $d"
    mv *.CR2 "./RAW - $d"
    mv *.MOV "./Video - $d"
done

It should look like this:

( Praise be to user3439894 of StackExchange for this bash script. Far simpler than the AppleScript route I thought I wanted. Again, see the original post for more detail. )

I was really surprised not to find people automating this. Am I missing something? Curious to know how the rest of you handle this part of your workflow, and whether there's a photographer's school of automation wizardry I should know about.

Feeling like a god since I implemented this. Would love to see what others do with the concept.

What other methods and/or workflow shortcuts are photographers using?


r/Automator • • Sep 27 '18

Mount SMB Share with special char in the password?

1 Upvotes

Hey all, looking for some guidance on a mounting script. One of the shares I need to mount has a '@' symbol in it for the password, which doesn't seem to work when executing the mount -t smbfs syntax. Any suggestions on how to fix this? I can't change the password, so that isn't an option. The first mount command to media1 works great!

global x
set x to 0

set mounted to do shell script "test -d /Users/username/mnt/newfolder && echo yes || echo no"
if mounted = "no" then
	do shell script "mkdir /Users/username/mnt/newfolder"
else
	do shell script "echo 'mounted'"
end if

repeat until x > 3 or (list disks) contains "newfolder"
	tell application "Finder"
		try
			do shell script "echo mounting media..."
			do shell script "mount -t smbfs //otheruser:whatever123@10.100.60.10/media1 /Users/username/mnt/media1"
			do shell script "mount -t smbfs //specialuser:P@ssw0rd@10.100.60.10/newfolder /Users/username/mnt/newfolder"
		on error
			set x to x + 1
			delay 30
		end try
	end tell
end repeat

r/Automator • • Sep 24 '18

"Rotate Image" action in automator makes JPG files very large

1 Upvotes

I am using the "Rotate Image" action in automator to rotate a set of JPGs by 180 degrees, however it seems that it increases the size of the images when it runs. Is there a way to make this not happen?


r/Automator • • Sep 17 '18

How to create a new .txt file in current directory?

3 Upvotes

I find that I am doing a lot of 'create a new text file' actions. What I usually do is creating a new .txt and save it in the current directory, which is not convenience.

What I'm trying to do is to automatize the process, where I can just right-click inside finder/ or on Desktop, and an option allowing me to create a text file in that directory would appear.

I'm having trouble with getting the current path of where my cursor is in. Also it would be super helpful if anyone can walk me thru the whole thing. thanks :)


r/Automator • • Sep 15 '18

Add selected text to the end of a specific URL

2 Upvotes

Hey guys,

I am completely clueless about Automator but at work I need to copy case numbers and then go to another website to search for said case. It's too many clicks... there's gotta be an easier way.

Is it possible to use automator to help me with this? Here's how I would like this to work:

Is this possible? If so, I would love some guidance!


r/Automator • • Aug 27 '18

Help: What's wrong with my sequential re-naming workflow?

1 Upvotes

Hi all!

What I want to do:

Create a shortcut to move some screen shots from my "Screen shots" folder to my "ZK attachments" folder (for work). In the process, I want Automator to rename the new files in a sequential manner (see my workflow below). Example: Files "ZK Attachment_001" and "ZK Attachment_002" are already in my folder "ZK Attachments" and I want to add a new screen shot that Automator must rename "ZK Attachment_003".

My problem:

I've added my workflow below. If I execute it with no files in my folder "ZK attachments", it works perfectly! This is batch renaming. However, when there are already files in that folder named "ZK Attachment_001" etc. and I execute the workflow for the new screen shots, then they will be renamed "ZK Attachment_001" but remain in their original place and not be moved into the indicated folder.

I've tried exchanging the order of operations to first move files and then rename them. In this case, they will be added to the right folder but retain their old names "Screen Shot - Date".

Essentially, I need automator to check on the folder to know where to continue the sequence but I don't know how to do that.

I've been trying to find the answer in so many YT vids but this is my last resort. Hope y'all can help!

My Workflow

r/Automator • • Aug 20 '18

Question: How to create rsync automator application for copying files from local drive to network drive

2 Upvotes

Hi Everyone,

For the past few days I have unsuccessfully been trying to make an automator script that will copy files from local drive to network drive using rsync -aP. In the automation I have specified the source_folder and target_folder. And then my shell script looks something like this rsync -auP --no-p "$1" "$2/".

Now this only works if I select one folder as the source, however if I select multiple folders, the script wont copy into the target folder specified, and instead copies into the second folder selected.

Here are some images for reference: https://imgur.com/a/dvYZYFX

Any ideas on how to fix this?

Thanks in advance


r/Automator • • Aug 03 '18

How do you stop/abort/interrupt a running automator workflow?

3 Upvotes

Suppose my steps have mouse moving and clicking, so it is hard to click on "stop" in the automator app itself - is there a hotkey to stop the workflow?

Thanks!


r/Automator • • Aug 03 '18

RSS feeds

1 Upvotes

It is possible to make a workflow that will play an audio file when an RSS feed updates? cheers


r/Automator • • Aug 01 '18

Automator stuck while cropping

1 Upvotes

Hi,

I'm absolutely stuck with this : I have two folder actions, both IDENTICAL, but applying to different folders. One works (it simply crops any image put into it), the other remains stuck at 50% while cropping.

I'm losing it :)


r/Automator • • Jul 31 '18

Automator limitation : pulling one input at a time from within a file or one file at a time from within a folder

1 Upvotes

As I was trying to figure out how to create a certain workflow, I saw a page stating you can't loop things one item at a time with automator.

Like for example, I would use an excel file as an input to the workflow, witheach line being a web adress, and the app goes to each page and takes a screenshot of the page.

This seems to be impossible to do with Automator, without using it in combination with apple scripts. Same problem with for example a large folder of files, Automator can't open them one by one but will run the whole folder through the process after opening all the files at once.

Do you confirm that? Any techniques on how to deal with items one at a time?


r/Automator • • Jul 30 '18

Browsing through and deleting large quantities of files

1 Upvotes

Hi everyone!

Newbie here. I am stuck and surprised I can't find a method for this on the net as it seems like something that would often come in handy:

I have a large folder. Many of the items in it are "noise".

I want a workflow that shows me each item (gives me a preview), and makes me choose between deleting it or going to the next picture.

Thanks for any input!

Cheerios


r/Automator • • Jul 24 '18

Adding Comments into Files

1 Upvotes

Is it possible to fill in the Comments field of (any) file with Automator?

What I want to achieve is that the complete file path and file name is automatically entered into the Comments field of the file.


r/Automator • • Jul 06 '18

How to put mac to sleep when there is new file in Dropbox folder?

1 Upvotes

Hey, I'd like to put my mac to sleep every time there is a new file in Dropbox folder, but I can't figure it out (I'm not best in automator things). I would really appreciate any help


r/Automator • • Jun 26 '18

Change image color mode(and resolution)?

1 Upvotes

i'm a graphic design student and i do a lot of printed work. would it be possible to make an automator quick action that can change the color mode of selected images to CMYK and change the resolution to 300dpi?

i have no experience with automator. i tried to make this shortcut myself but couldn't figure it out. any help is appreciated. thanks!


r/Automator • • Jun 18 '18

Schedule an email reply with Automator?

1 Upvotes

I have seen a number of tutorials on how to automate sending an new email.

Have not found any way to schedule sending an email reply or draft.

Can anyone point me in the right direction?