How can I use Scripts to open changing personal website URL in Sites Folder on a Mac?

Nancy Cardinali December 22, 2010
Whatsapp Pinterest

This article What Is AppleScript? Writing Your First Mac Automation Script AppleScript can help you automate repetitive tasks on your Mac. Here's an overview and how to write your first AppleScript script. Read More described using DefaultActionsbbb>URLs to set up a quick way to open a url.

I design websites and use my sites folder to view them before going live. The url for this changes – sometimes more than once a day.

Is there anyway to set up something that will keep track of the current URL? What I do now is open System Preferences> Sharing> Web Sharing to get the URL.

I’m a complete newbie using Scripts.

  1. Nancy
    December 25, 2010 at 12:12 am

    The local ip changes - sometimes several times a day. I don't know why this is. In my opinion it should not. It never did before.
    When I type in http://localhost/, I get ONE website, supposedly my personal website, although I don't use it.

    If I want to work locally on the 30 client websites I have in the Sites folder, I must use the local ip. Something like this:

    Interesting... That works now. Weird.

    Okay. Moot point!
    Thanks Richard & Mike!!

    • Tina
      December 26, 2010 at 5:24 am


      thanks for your feedback and glad to hear the suggestions from Mike and Richard helped! :)

  2. Mike
    December 23, 2010 at 9:37 pm

    The easiest way is to access them via http://localhost/ [or]

    [Unless changed manually or by malware] this host will always point to the local computer and therefore account for any changes in the network like getting a different IP via DHCP etc.

  3. Anonymous
    December 22, 2010 at 10:59 pm

    If you are sharing the website, just get your local ip address (not external ip address). Type the IP in your browser.

    I am not up on current AppleScript and I am sure it has changed a little, or aleast enough to matter.