• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with script please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with script please


  • Subject: Help with script please
  • From: "Ball, Dan" <email@hidden>
  • Date: Thu, 10 Jun 2010 14:30:05 -0400
  • Acceptlanguage: en-US
  • Thread-topic: Help with script please

Hi everyone,

Just updated my clients to Firefox 3.6.3 and I am getting an error now with an xcode applescript app I made.  Its basically a bunch of buttons that users can visually see and click on so they do different things.  For example the following opens a website but doesn’t work now for some reason.  Whats wrong with the code?    Its been the same for years, not sure why it isn’t working all of sudden.  The error seems to be Firefox doesn’t like the OpenURL in the script.

on clicked theObject
    tell application "System Events"
       if exists process "firefox-bin" then
           tell application "Finder"
               activate
               open application file "Firefox.app" of folder "Applications" of startup disk
                delay 4
               tell application "Firefox"
                   OpenURL "www.hotmail.com"
               end tell
           end tell
       else
           tell application "Finder"
               activate
               open application file "Firefox.app" of folder "Applications" of startup disk
                delay 8
               tell application "Firefox"
                   OpenURL "www.hotmail.com"
               end tell
           end tell
       end if
   end tell
end clicked
on action theObject
end action



Thank you,

Dan
 _______________________________________________
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

  • Follow-Ups:
    • Re: Help with script please
      • From: Steve Thompson <email@hidden>
  • Prev by Date: Entourage 2008 dictionary trouble - synching subfolders
  • Next by Date: Re: More XML stuff - reading - changing - and writing the file
  • Previous by thread: Entourage 2008 dictionary trouble - synching subfolders
  • Next by thread: Re: Help with script please
  • Index(es):
    • Date
    • Thread