I'm trying to edit the SubPage.html from the PS Web Photo Gallery maker.
The file is located here:
Program Files\Adobe\Photoshop 6.0\Presets\WebContactSheet\Table
In this file there are variables that PS uses like "%FILEINFO%" & "%IMAGESRC%". What I have done is put together a new SubPage template file that is strictly setup for my website. I have included a layer with an iframe. In this iframe I am trying to insert a url to another html file. This template works just fine if you insert the url directly into the src=.
What I was trying to do is to use one of the variables that PS uses "%FILEINFO%" which uses the Caption from the image's file info.
I want to set the html filename using %FILEINFO%" and add the ".html"> to the end like this.
Below is the javascript I was using to try to concatenate the variables together.
Is my syntax correct? I have tried to use %FILEINFO% without setting it to a variable too,,,,didn't work. Just thought maybe someone here could help. If I use %FILEINFO% by itself, I get the value that I entered into the Caption. So its not the %FILEINFO% variable. Its the way I am putting them together. I'm a beginner at this so any help would be great!
Without testing it myself, it looks like you're missing a couple quotes in here. Try using single quotes to wrap the whole string (or \" escape codes if it floats your boat)
...without any script, because it looks like Photoshop will use raw HTML for the preset files. Is there any reason you wanted to script it?
Thanks guys!
Yes Mousie, thats how I ended up doing it last night. I think I tried it once and it didn't work for some reason, so I moved on to try something else. I had the script that I use for my email address so that the bots can't harvest it. So, I tried using that. I went to bed at 11pm and when my head hit the pillow, it just came to me that I was doing it right in the first place and I got up and rewrote it just like you have it, without the scripting, and it worked.