Hav almost solved my IE from problem

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???

You need to encode your URL:

Jon

that didnt work as it should have, it didn’t seem to do anything to the form, whereas before sometijmes the form would be updated.

I have had a new idea, and i think the reason it might not be working is because its not a srtring, so my question is whether i can save the clipboard as a string.

This way i can do the above but save it via the clipboard and then convert it to a string.

i know in java you can do the following, well syntax might be off but you can get the gist:



String number = (toString(int Number));


the above code is wrong but that is basically wht you have to do to convert something that isn’t a string to a string.

So can i save the clipboard as a String, trhis might help me out. Cheers.