Track an eBay auction from the Script menu

Say you are following an item on eBay and you don’t want to automatically query eBay on that item. Here’s a script you can use from the Script menu. Now the trick is it searches on the bid item number and retains the item number from one running of the script to another. Just don’t shut down your computer!

OS version: OS X


property my_bid : 0

tell application "Finder"
  display dialog "Gimme yer eBay item number:" default answer my_bid ¬
    buttons {"OK"} default button 1
  set my_bid to text returned of the result
  tell application "Safari"
    activate
    open location ¬
      "http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=" & my_bid
  end tell
end tell