I still have my caption problem that all my other posts are about and have almost solved it. The following code inserts the caption into the right area, it works because the string is in " " ←
tell application "Internet Explorer"
Activate
set imageNumber to 103826
set caption to "Roger Moore wasnt as good as sean connery"
--this url will fill the form and save the informsatio of the file.
(************************************************
* insert=image <= inserts the image
* libryno=filename <= insert the filename as library number
* physical=cd number <= this will insert the cd number of the CD, in caps
* caption=blank <= this should be blank, as it doesn't do anything
* description=documentcaption <= this will insert the caption in the right area
* format=N <= this will set the fprmat to negative
* photogid=25 <= this will give the photographer, 25 is ad blake
*************************************************)
OpenURL "http://www.b..../blah.asp?action=insert&image=" & imageNumber & "&libraryno=" & fileName & "&physical=&caption=&description=" & caption & "
&format=N&photogid=25"
end tell
But if i do the same above but use a variable then it will not work. The following code explains what i mean:
tell application "Adobe Photoshop 7.0"
activate
set fileName to name of current document
set documentCaption to caption of info of current document
close current document
end tell
tell application "Internet Explorer"
Activate
set imageNumber to 103826
--set caption to "Roger Moore wasnt as good as sean connery"
--this url will fill the form and save the informsatio of the file.
(************************************************
* insert=image <= inserts the image
* libryno=filename <= insert the filename as library number
* physical=cd number <= this will insert the cd number of the CD, in caps
* caption=blank <= this should be blank, as it doesn't do anything
* description=documentcaption <= this will insert the caption in the right area
* format=N <= this will set the fprmat to negative
* photogid=25 <= this will give the photographer, 25 is ad blake
*************************************************)
OpenURL "http://www.b..../blah.asp?action=insert&image=" & imageNumber & "&libraryno=" & fileName & "&physical=&caption=&description=" & documentCaption & "
&format=N&photogid=25"
end tell
In the above code the variable documentcapion coems from photoshop, and says the same as the previous code.
It must be the " " from before, can i add that to the variable so that it will owrk???