Re: applescript and graphics programs
Re: applescript and graphics programs
- Subject: Re: applescript and graphics programs
- From: Ron Bishop <email@hidden>
- Date: Mon, 10 Jun 2002 12:36:18 -0500
I would suggest using iView MediaPro (
http://www.iview-multimedia.com/)
for your project. It can ID all these files and more and give you even
more information. That way you're only scripting one application that
can do it all.
iView MediaPro very AppleScriptable and comes with sample scripts.
We use it in conjunction with MySQL and PHP to create databases of
images based on keywords in the IPTC information of images. All the
image info is set in the file via iView then moved to an appropriate
folder. Then a PHP script is fired that that extracts the information
from the file and places the information into the MySQL database along
with a file path.
You could also use it with FileMaker, MacSQL or whatever.
Hope that helps,
Ron Bishop
www.daddydoodaa.com
On Monday, June 10, 2002, at 10:52 AM, Erik Price wrote:
Hi everyone,
I was hoping to solicit some advice. I need to write a pretty involved
AppleScript (perhaps a droplet or something) that does a couple of
things when executed, and I'm not sure if it's all even possible.
Could someone confirm or give a bit of input?
Here is the requirement:
1. A folder containing graphics files such as JPEGs, Photoshop
documents, Quark XPress documents, Illustrator files, TIFFs or PDFs
will be assembled by the user.
2. The user takes their folder and drags it over the droplet, which
activates the AppleScript (that I need to write).
3. The AppleScript searches through this folder and extracts the
following information about each file:
- width
- height
- resolution if applicable
- file type (JPEG, TIFF, QXP, etc)
- file size
The dimensions preferrably in inches (but if it must be pixels then I
can do the math to get the inches based on the resolution)
4. The information is then written to a text file which is added to the
folder.
Later the text file will be used as the insert data for a MySQL
database, but that's offtopic and will be the easiest part. The hard
part, for me at least, will be creating this script.
Can anyone give me a pointer? My methodology was going to be to use
the dictionary of the programs that we use here (Quark, Photoshop,
Illustrator, etc) to see what file attributes are able to be extracted
from the files. But any advice before I get started is greatly
appreciated.
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.