Monday, April 21, 2014
  • Index
  •  » Automator
  •  » Help with workflow to scale image and rename file by folder name?

#1 2013-02-23 03:06:01 pm

DaGrandMastah
Member
Registered: 2013-01-31
Posts: 8

Help with workflow to scale image and rename file by folder name?

Hi all, I was hoping someone can help me to put together the last piece of this puzzle.  I've put together an automator workflow that allows me to resize/scale cbr (comic book) files from their original size down to whatever percentage i choose.  I ultimately have to unzip the file then highlight all the pictures and use the workflow to resize them...at which point the workflow rezips the file and changes the extension to cbr with the newly scaled images.  The last thing I'm trying to do is rename that file (it always comes out as archive.cbr) into the name of the folder that it is located in.  I haven't been able to figure this out as of yet.

http://i48.tinypic.com/2lc0ksh.jpg

Last edited by DaGrandMastah (2013-02-23 03:11:00 pm)

Offline

 

#2 2013-02-23 11:38:17 pm

DaGrandMastah
Member
Registered: 2013-01-31
Posts: 8

Re: Help with workflow to scale image and rename file by folder name?

I've been messing with it again today and cannot nail this down.  The closest that I got was added a replace text workflow but that prompts me to manually type the output files name out.  I'm trying to have the final outputted cbr file automatically renamed to match the exact folder name (just the name not the entire path).  I tried messing with different scripts and nothing seems to work.

Offline

 

#3 2013-02-25 08:42:37 am

DaGrandMastah
Member
Registered: 2013-01-31
Posts: 8

Re: Help with workflow to scale image and rename file by folder name?

Sorry all, I think this is really an apples cript issue and should go into that forum instead of this one.  My apologies for the duplicate.

Offline

 

#4 2013-03-22 10:36:21 pm

pjdube
Member
Registered: 2012-10-13
Posts: 77

Re: Help with workflow to scale image and rename file by folder name?

No, this actually can be accomplished in Automator.  In order to do this the Service has to receive folders.

See below, workflow I did. I tested it and it actually puts the name of the folder.

http://f.cl.ly/items/3e0T100P283J3X3J1f0u/archive1.JPG
http://f.cl.ly/items/2h1w02463z2Y271h1m1P/archive2.JPG

Last edited by pjdube (2013-03-22 10:37:25 pm)

Offline

 
  • Index
  •  » Automator
  •  » Help with workflow to scale image and rename file by folder name?

Board footer

Powered by FluxBB

[ Generated in 0.028 seconds, 10 queries executed ]

RSS (new topics) RSS (active topics)