These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

URL

mcapps
Registered: Jan 24 2008
Posts: 25

I have ask this a before but i am still having proble geting the location of a file on a computer with out having a warning poping up. I was just want to know if there was a way to do it with out the warning poping up.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Please be more specific. What warning? what version of Acrobat/Reader. And what specific URL property?

If you are talking about the "doc.URL" property. Then just referencing it should not show any popup warnings. Acrobat only shows warnings when a script tries to access the outside world. Then again, Acrobat 8.12 is full of problems, so you may have hit some awkward version dependant bug.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

mcapps
Registered: Jan 24 2008
Posts: 25
Its in Acrobat 8.1.1 and i am trying to just to save the url of the file that the button is on to a var. but when I used the doc.URL in the folder level Function The code will stop when it hits the doc.URL code.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Ok, I'll admit it. I didn't believe you at first. I've used "doc.URL" many times in the past. It's just a string, that's all, it doesn't access anything. Yet, referencing from a script causes a security popup stating that the PDF has tried to access a web site, which it hasn't.

I tried it from several differnt script locations, including a folder level trusted function, which had the same problem. The only two locations that didn't get the popup were the Console Window and a Batch Sequence Script.

The Acrobat JavaScript Reference does not mention any security issues about this parameter. This has got to be a bug or some other kind of insanity.

Right now I don't think there is anything you can do about it. I looked through the preferences and there doesn't appear to be anything that you can set to bypass the popup message.

The best thing you can do is complain to Adobe.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

mcapps
Registered: Jan 24 2008
Posts: 25
thanks i'll try and send somthing to Adobe today