Re: How to manage image-list
Re: How to manage image-list
- Subject: Re: How to manage image-list
- From: Jan Bultereys <email@hidden>
- Date: Wed, 10 Jun 2009 11:55:33 +0200
- Thread-topic: How to manage image-list
Title: Re: How to manage image-list
Hi pascal,
What I did, and I am talking about 300.000 images is creating an index files using unix commands. (for example this can be created during the night)
>From there you can make your script talk to the index file instead of digging into the file structure.
What is your goal? Finding an specific image and place it into quark?
Best regards,jan
From: Pascal van den Bulck <email@hidden>
Date: Wed, 10 Jun 2009 11:43:16 +0200
To: "email@hidden" <email@hidden>
Subject: How to manage image-list
Having automated creation of documents with Quark-templates, Applescript, productinformation and folderstructure with a large amount (ca. 5000 ) pictures/productimages, I have the following question:
Each document that is constructed contains about 10 pictures. If the script has to search the entire list of 5000 images, it takes to long.
How can I divide this list of images into managable sections (100 - 200 pictures), without having to change the folderstructure in which the pictures reside?
Here's the script I use to list the images:
set theImageFolder to choose folder with prompt "Choose folder containing images to catalog:"
try
set theImageList to (every file of theImageFolder whose kind is not "alias")
if class of theImageList is not list then set theImageList to theImageList as list
set theNumberOfImages to the number of items of theImageList
set theImageNameList to (the name of every file of theImageFolder whose kind is not "alias")
if class of theImageNameList is not list then set theImageNameList to theImageNameList as list
on error
beep
display dialog "No images were found in this folder." buttons {"Cancel"} default button 1
end try
--
Pascal
---------------------------- DISCLAIMER -----------------------------
This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised use
or dissemination of this message in whole or in part is strictly prohibited.
Please note that e-mails are susceptible to change. Morres Wonen B.V.
(including its group companies) shall not be liable for the improper or
incomplete transmission of the information contained in this communication
nor for any delay in its receipt or damage to your system. Morres Wonen B.V.
(or its group companies) does not guarantee that the integrity of this
communication has been maintained nor that this communication is free of
viruses, interceptions or interference.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden