pancakes

MicrostockGroup Sponsors


Author Topic: Faster Zip eps and jpg files  (Read 3575 times)

0 Members and 1 Guest are viewing this topic.

« on: October 10, 2016, 11:38 »
0
Hi,
I have a case concerning compress files eps and jpg:
- I have a group of files eps and jpg. In this group there are a pair of the same name (vector1.eps and vector1.jpg; vector2.eps and vector2.jpg etc.)
- I would like to select all the files together and have it automatically compress to zip files, which will join my pairs and will have names vector1.zip, vector2.zip etc.

Is it possible in any program?
« Last Edit: October 10, 2016, 11:48 by lechyu »


Justanotherphotographer

« Reply #1 on: October 11, 2016, 08:37 »
0
I needed this ages ago and never found a solution either. I'd be interested to know if anyone has one.

« Reply #2 on: October 11, 2016, 09:51 »
0
You can make an Apple Script:

Quote
set startFolder to quoted form of POSIX path of ((path to desktop) & "zip folder" as string)
set jpegList to paragraphs of (do shell script "find " & startFolder & " -type f -iname '*.jpg'")

repeat with aFile in jpegList
   set fileName to name of (info for POSIX file aFile)
   set baseName to text 1 through -5 of fileName
   set epsName to quoted form of (baseName & ".eps")
   set jpegName to quoted form of (baseName & ".jpg")
   set zipName to quoted form of (baseName & ".zip")
   do shell script "cd " & startFolder & ";zip" & space & zipName & space & epsName & space & jpegName
end repeat

This is based off having a folder on your desktop called "zip folder". You put the files in there and run the script. Not sure if there are equivalent scripts for the PC.

Here's the original discussion on the Apple scripting forums:

https://discussions.apple.com/thread/2231269?start=15&tstart=0

Justanotherphotographer

« Reply #3 on: October 21, 2016, 06:09 »
0
thanks for this, but I'm on a PC!

« Reply #4 on: October 24, 2016, 08:22 »
0
Hi,
I have a case concerning compress files eps and jpg:
- I have a group of files eps and jpg. In this group there are a pair of the same name (vector1.eps and vector1.jpg; vector2.eps and vector2.jpg etc.)
- I would like to select all the files together and have it automatically compress to zip files, which will join my pairs and will have names vector1.zip, vector2.zip etc.

Is it possible in any program?

Contact me in Message, i have a script with 7za zip to do this.


 

Related Topics

  Subject / Started by Replies Last post
12 Replies
6137 Views
Last post April 29, 2007, 15:11
by ManicBlu
Earnings Function Much Faster

Started by WarrenPrice 123RF

0 Replies
2441 Views
Last post December 02, 2009, 17:40
by WarrenPrice
2 Replies
4984 Views
Last post May 04, 2010, 15:48
by Pixart
4 Replies
3911 Views
Last post May 23, 2019, 04:26
by SpaceStockFootage
8 Replies
6351 Views
Last post November 15, 2019, 15:04
by HalfFull

Sponsors

Mega Bundle of 5,900+ Professional Lightroom Presets

Microstock Poll Results

Sponsors