• 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
re: curl...file listings...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: curl...file listings...


  • Subject: re: curl...file listings...
  • From: David Crowe <email@hidden>
  • Date: Thu, 27 Oct 2005 20:47:43 +0800

Title: re: curl...file listings...
Jim;

The bug in Fetch is with the "close window" command, I just figured this out.

The simple commands:

tell application "Fetch"
        close window "any-window-name"
end tell

Insists on bringing Fetch to the front, which it shouldn't do.

If the "close window" command comes directly after a "put into url" command the behaviour is worse ... it then refuses to close the window until Fetch is brought to the front. I can't seem to reproduce this behavior in a test script ... Fetch brings itself to the front as soon as it executes "Close Window". This means it doesn't hang up, but it's extremely annoying behavior as it butts in on anything I might be doing at the time the download finishes.

Basically if I remove all "close window" commands from Fetch I'm okay, but that results in a proliferation of windows. If I'm also using Fetch for manually controlled operations, this is annoying.

In fact, one of Fetch's weaknesses is that it is extremely window-oriented. It can't start a second operation to the same site, for example, without opening another window.


- David Crowe


At 10:36 AM -0400 10/26/05, Jim Matthews wrote:
David Crowe wrote:
Whenever Fetch completes a download or upload it insists on being
brought to the front. This means that if the user activates another
application while Fetch is running, that the script halts, and
probably times out.

That should not happen (and I've never seen it).  If you check the "Bounce icon in Dock" option in Preferences Fetch will bounce the Dock icon after every operation, but it should keep processing Apple Events in the background.
I have put a timeout block around Fetch in case this happens, but
this means that I don't really know that the upload has finished, it
may be just taking longer than I allowed. It also means that if the
upload takes only 1 second, but I have a 20 second timeout, that a
lot of delays are inserted.

It is often necessary to bracket statements that transfer files with a "with timout of x seconds / end timeout" block, because many file transfers take longer than the default AppleScript timeout.  But using a timeout block does not insert delays -- the statements will complete as soon as the transfer is done.

Please let me know if you have questions about scripting Fetch.  And check out the example scripts at http://fetchsoftworks.com/FetchExampleScripts.sitx

Thanks,
--
Jim Matthews
Fetch Softworks
http://fetchsoftworks.com

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • re: curl...file listings...
      • From: Emmanuel <email@hidden>
References: 
 >re: curl...file listings... (From: Jim Matthews <email@hidden>)

  • Prev by Date: Re: Placing long URLs in email
  • Next by Date: Re: Problem with repeat command
  • Previous by thread: re: curl...file listings...
  • Next by thread: re: curl...file listings...
  • Index(es):
    • Date
    • Thread