Your best friend for file transfer.

Fetch application logoFetch

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

  • Started 11 years ago by Brad
  • Latest reply 11 years ago from Brad
  • Brad 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 11 years 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 11 years ago #

  • Brad Member

    Thanks Jim that worked.

    Brad

    Posted 11 years ago #

Reply

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