Re: How to manage image-list
Re: How to manage image-list
- Subject: Re: How to manage image-list
- From: "Pascal van den Bulck" <email@hidden>
- Date: Wed, 10 Jun 2009 23:20:43 +0200
- Importance: normal
- Priority: normal
Title: Re: How to manage image-list
Thanks Jan,
That’s exactly my goal: finding a specific image and placing it into Quark. And it works too, but it works slow with large amounts of images.
I’m currently using listcomparison/list position to place some logo-images (less than 20 images), but how would you go about working with index files?
Would you use records e.g {filename, filepath} ?
What I’m searching for is a method that will leap through the amount of images:
Product “123-456-78” has corresponding images whose name contains “12345678”, e.g. “12345678-01”, “12345678-02”
Is there a way to check the first two numbers, the second two, the third two, the seventh and finaly the last number ?
In this case, any image that would not start with “12” would be ignored, with “1234”, with “123456” and so on until you find the specific images.
Greetings, Pascal
On 06/10/09 11:55 AM, "Jan Bultereys" <email@hidden> wrote:
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
---------------------------- 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