Trouble escaping @
Trouble escaping @
- Subject: Trouble escaping @
- From: "Jacopille, David" <email@hidden>
- Date: Thu, 7 Dec 2017 17:08:17 +0000
- Thread-topic: Trouble escaping @
I’m trying to automatically mount a webdav share but am having difficulty
escaping a @ in the password.
property username : "superuser"
property pass : "Bl@ckberry"
tell application "Finder"
mount volume "http://" & username & ":" & pass & "@servername:5100/content/dam"
end tell
I get the error: there was a problem connection to the server
ckberry@servername.
As might be expected, it treats the first @ in the password as the start of the
server name.
When connecting manually in “Connect to Server” I’d use a hex code @ ‘escape’
the @ like this…
http://superuser:Bl@ckberry@servername:5100/content/dam
…something similar in Applescript just converts the @ directly to @ with the
same result.
Programmatically in other environments I’d use a backslash to escape reserved
characters, but I’ve tried a double, triple, quadruple, etc. backslash and
can’t get it to work. With any odd number of backslash, I get the error at
compile
expected “”” but found unknown token.
Any even number of backslashes results in the same results as if using @ or @.
Any ideas?
Thanks,
Dave
MFS Email system made the following annotation
---------------------------------------------------------------------------------------------------------------------------------------
This email communication and any attachments may contain proprietary,
confidential, or privileged information. If you are not the intended recipient,
you are hereby notified that you have received this email in error and that any
review, disclosure, dissemination, distribution or copying of it or its
contents is prohibited. The sender does not waive confidentiality or any
privilege by mistransmission. If you have received this email in error, please
notify the sender immediately, delete this email, and destroy all copies and
any attachments.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden