Rename after opening with droplet

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Rename after opening with droplet Fri Jul 21, 2017 9:00 pm • by Drifter
Hi guys,

I am currently setting Hazel up as follows,
1. Open new file added to folder with a Photoshop Droplet
1a. This droplet will resize my image and export to another folder
2. Rename the file

But apparently, the rename happens before the file is opened with the droplet, so the newly exported file is wrongly named.
I'm guessing that means that the Hazel actions don't go by sequence but concurrently?
Is there a way to make it go in sequence instead?
Thanks in advance!
Drifter
 
Posts: 10
Joined: Thu Dec 29, 2016 10:20 am

Re: Rename after opening with droplet Mon Jul 24, 2017 10:51 am • by Mr_Noodle
The problem is that the Photoshop droplet is returning back to Hazel before it's finished its job. Can you have the droplet do something when it's done, like set a color label/tag? If so, you can have it do that and have another Hazel rule look for that tag before doing the rename.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rename after opening with droplet Sat Jul 29, 2017 8:01 am • by Drifter
Don't think it can set anything to the processed file though. =(
Maybe adding a time delay before the next action might help. I search around for any script for delaying the next action~
Drifter
 
Posts: 10
Joined: Thu Dec 29, 2016 10:20 am

Re: Rename after opening with droplet Mon Jul 31, 2017 11:00 am • by Mr_Noodle
You can try the following shell script:

sleep X

where X is the amount of time to pause in seconds.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support