>>     $path =~ s/"/\"/g;
 >>     $url  =~ s/"/\"/g;
 >
 >I don't think this will do much. You must have forgotten to double the
 >backslashes.

Bart, Chris was escaping the quotes so that the Applescript doesn't read 
them as the end of it's command. For example:

   $path = qq[MacHD:my "secret" files:app];
   MacPerl::DoAppleScript(qq[tell application "$path" to GetURL "$url"]);

In this instance, the Applescript would see:

   tell application "MacHD:my " secret" files:app to GetURL "$url"

The Applescript would try to run the program named "MacHD: my ", which is 
obviously incorrect. By escaping the quotes, the AppleScript won't be confused.


Morbus Iff
.sig on other machine.
http://www.disobey.com/
http://www.gamegrene.com/

Reply via email to