Your best friend for file transfer.

Fetch application logoFetch

Applescripting an @ sign used in a password (3 posts)

  • Started 1 year ago by BradEcho
  • Latest reply 1 year ago from BradEcho
  • BradEcho Member

    When scripting Fetch I usually build the login and password into the script path. For instance:

    ftp://Administrator:password@192.168.0.1/"

    However, I recently encountered a website where the password INCLUDES an @. How do I code for it?

    Thanks
    Brad

    Posted 1 year ago #

  • Jim Matthews Administrator

    Hi,

    The way to include a special character (like a @, :, /, or even a space) in a URL is to %-encode it, i.e. to replace it with %XX, where XX is the character's hexadecimal ASCII value. The hex ASCII value of the @ character is 40, so you'd replace the @ in your password with %40.

    Let me know if that doesn't work.

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 1 year ago #

  • BradEcho Member

    Thanks Jim that worked.

    Brad

    Posted 1 year ago #

Reply

  • Or nickname, if you prefer.
  • This will be kept confidential.
  • This is to ensure that you’re a person, not a spambot.