>> $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/
- [MacPerl] Processes, Command Parameters, and Other Apps... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other A... Alan Fry
- Re: [MacPerl] Processes, Command Parameters, and Other A... Chris Nandor
- Re: [MacPerl] Processes, Command Parameters, and Other A... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other A... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other A... Alan Fry
- Re: [MacPerl] Processes, Command Parameters, and Other A... Bart Lateur
- Re: [MacPerl] Processes, Command Parameters, and Other A... Chris Nandor
- Re: [MacPerl] Processes, Command Parameters, and Other A... Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other A... Alan Fry
- [MacPerl] [OT] "Morbus Iff's Program" Morbus Iff
- Re: [MacPerl] [OT] "Morbus Iff's Program" Morbus Iff
- Re: [MacPerl] Processes, Command Parameters, and Other A... Chris Nandor
- Re: [MacPerl] Processes, Command Parameters, and Other A... Alan Fry
- Re: [MacPerl] Processes, Command Parameters, and Other A... Alan Fry