Switching set of referenced images
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Switching set of referenced images
I'm a non-programmer and new at this, so please forgive me if this is a no-brainer.
I'm using referenced images to create the look-and-feel for a rev application. I envision creating the stack with a default folder of images, and offering the user the ability to choose among several different sets of themed images if he or she desires. Each set of images would be stored in its own folder at the same directory level as the default set.
The images would be used in four different groups. One of these groups would be behaving as a "background" and used on multiple cards.
What is the easiest way to implement such switch-ability?
Thank you for any tips!
I'm using referenced images to create the look-and-feel for a rev application. I envision creating the stack with a default folder of images, and offering the user the ability to choose among several different sets of themed images if he or she desires. Each set of images would be stored in its own folder at the same directory level as the default set.
The images would be used in four different groups. One of these groups would be behaving as a "background" and used on multiple cards.
What is the easiest way to implement such switch-ability?
Thank you for any tips!
Re: Switching set of referenced images
Hi Mistfall,
I have done something like a long time ago.
The ideal scenario would be:
SAME name for the images, only differnt folder names.
Example:
You have a couple of folders named "skin1", "skin2" etc.
All the images have the same name like "image1.jpg", "image2.jpg" etc.
THEN you can easily create a repeat loop that changes the appropriate FOLDERNAME in the filename of your images like this
when switching the "image set" to "skin2":
Know what I mean?
A clever naming convention is EVERYTHING in cases like this!
Hope that helps.
Best
Klaus
I have done something like a long time ago.
The ideal scenario would be:
SAME name for the images, only differnt folder names.
Example:
You have a couple of folders named "skin1", "skin2" etc.
All the images have the same name like "image1.jpg", "image2.jpg" etc.
THEN you can easily create a repeat loop that changes the appropriate FOLDERNAME in the filename of your images like this
when switching the "image set" to "skin2":
Code: Select all
...
## Change the "image set" on one card
set itemdel to "/"
repeat with i = 1 to the num of images
put the filename of img i into tFilename
## Volume/Folder1/folder2/skin1/image1.jpg
put "skin2" into item -2 of tFilename
## Volume/Folder1/folder2/skin2/image1.jpg !!
set the filename of img 1 to tFilename
end repeat
...
A clever naming convention is EVERYTHING in cases like this!
Hope that helps.
Best
Klaus
Re: Switching set of referenced images
That might work for me too, the same idea, for linking a list of words and two images for each level of difficulty in the spelling game I am making for my students! Store the information for each level on its own card or folder?
2nd-grade Teacher, Poultry Fancier, Scottish Country Dancer
and Perpetual Beginner
and Perpetual Beginner
Re: Switching set of referenced images
Hi Bantymom,
Store it wherever it makes sense to you
Best
Klaus
I am not sure if I understand your question?Bantymom wrote:... Store the information for each level on its own card or folder?
Store it wherever it makes sense to you

Best
Klaus
-
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
- Contact:
Re: Switching set of referenced images
Another option might be to create/edit Property Profiles... 

Re: Switching set of referenced images
Yep, maybe, but my script is dated a time long before these kind of modern comfortsshadowslash wrote:Another option might be to create/edit Property Profiles...

Thank you
Thank you, Klaus, that will be extremely helpful! Just what I needed!
Re: Switching set of referenced images
Hi all,
glad I could help!
Addition:
It might be a good idea to add a "lock screen" before and a "unlock screen" after the "repeat" loop!
Best
Klaus
glad I could help!
Addition:
It might be a good idea to add a "lock screen" before and a "unlock screen" after the "repeat" loop!
Best
Klaus