How to manage image-list
How to manage image-list
- Subject: How to manage image-list
- From: "Pascal van den Bulck" <email@hidden>
- Date: Wed, 10 Jun 2009 11:43:16 +0200
- Importance: normal
- Priority: normal
Title: 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