• 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: Download Folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Download Folder


  • Subject: Re: Download Folder
  • From: Joey Parshley <email@hidden>
  • Date: Tue, 5 Nov 2002 15:10:01 -0500
  • Resent-date: Tue, 5 Nov 2002 16:47:19 -0500
  • Resent-from: Joey Parshley <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

I'm not too adept at apple scripting yet. But could you write something in your script to check the file size of the file being downloaded at a set intervals and checking to see if the file size has changed? Then if the file size had not changed it should be finished and can be opened.

Please excuse my lack of Applescript syntax but it would behave something like this.

as the file is put in the folder
set file_name to file_being_downloaded
get the initial size of file_being_downloaded at the time of download call it something like initial_file_size
every ten seconds repeatedly get the file size of file_being_downloaded and call it current_file_size
compare current_file_size with initial_file_size and call it something like file_size_difference
when file_size_difference is zero the file should be downloaded completely assuming the application has not crashed or the download was not stopped inadvertently. I could be wrong but could you not also check the creator of the file while its being downloaded and once the file_size_difference is zero and the file type is no longer associated with Chimera it should be complete?
I'm sorry there is not script here as I am brand spanking new and learning it now. I am sure someone out there can script it properly. Again I am sorry if this is not helpful. Just trying to contribute as part of my learning process.

On Tuesday, November 5, 2002, at 01:48 PM, Paulo Jorge Rodrigues Gsis wrote:

I designed a folder action script to open any files downloaded to my
download folder since Chimera does not do this yet... It works well but
with just one minor setback. It tries to open the files before they are
finished downloading, and I can't figure out a way to make it wait
until the downloaded file is complete and them open it...

Please if anyone can help...
__
Paulo Jorge Rodrigues Gsis

Rua Antsnio Albino Machado n:24, 5: Fte.
1600-013 Lisboa Portugal
telefone fixo: +351 21 7263568
telefone fixo: +351 291 756913
telefone msvel: +351 965450207
email: email@hidden
email: email@hidden
web page: http://pwp.netcabo.pt/pjrgois
_______________________________________________
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.
_______________________________________________
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: OFF - Re: Activate - disable Internet Connection
  • Next by Date: Re: apple script menu
  • Previous by thread: Re: Download Folder
  • Next by thread: Cumulus Client: Getting Subcategories
  • Index(es):
    • Date
    • Thread