• 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
Using iCab? Need help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using iCab? Need help!


  • Subject: Using iCab? Need help!
  • From: Gnarlodious <email@hidden>
  • Date: Mon, 29 Sep 2003 21:39:40 -0600

You can see the entire script here:
http://www.Gnarlodious.com/Rename weblocs.scpt.html

I'm having a hard time getting the URL from the iCab window.

When I say:

tell application "iCab"
Activate 1
open FileSpec -- is path to a .webloc file
set the windowInfo to GetWindowInfo 1
-- close window 1
end tell

I'm getting a "parameter error" on the second pass. It seems that iCab is
opening the 2nd .webloc file in a background tab, which is how I have it
set. This may or may not be the cause of the error. Is it possible that
iCab's tabs are not responsive to scripting (too new)?
Even if I say "close window 1" between passes I still get the error. I have
to restart iCab to get rid of the error, and then only for 1 pass.

I'm trying to open all .webloc files in a folder and rename the files to
something recognizable. You can run this script in an open window to check
it out. You need at least 2 .webloc files in the front Finder window to make
it work.

Any advice welcome on optimizing this script. Maybe there is a way to
eliminate iCab altogether ant use URL Access, then it would work on all
webloc files regardless of the source.

--Gnarlie
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: iCal question
  • Next by Date: Re: Writing To A File
  • Previous by thread: iCal question
  • Next by thread: AppleScript and Mac Os X Mail
  • Index(es):
    • Date
    • Thread