• 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
constructing file name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

constructing file name


  • Subject: constructing file name
  • From: Mike Bautsch <email@hidden>
  • Date: Sun, 22 Feb 2004 20:09:45 -0500

I need to construct an applescript to automate the download of a file to be imported into a filemaker database on a daily basis. I am very familiar with the process of importing into filemaker with applescript but I am not familiar enough with applescript to construct the name of the file based on the date and then changing the name of the file downloaded to a name that will always be the same so filemaker can grab it.

The file name to be downloaded is always based on tomorrows date. So if todays date is 2/22/2004 the file name would be "20040222-da.csv". I'm sure I can use fetch with applescript to do the actual download once the name is in the proper format. Then I will need to change the name of the file to something specific such as, "da.csv" so filemaker can recognize it. Then delete the file so the space is ready for the next days download. I'm not really sure how to accomplish any of this except the doscript command to filemaker and using cron to schedule the applescript to run. All of this will be done in OSX 10.2.8.

Any help will be greatly appreciated.

Thank You,

Mike
_______________________________________________
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.

  • Follow-Ups:
    • Re: constructing file name
      • From: Hanaan Rosenthal <email@hidden>
    • Re: constructing file name
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Date Modified
  • Next by Date: True Optional Handler Parameters (Positional)
  • Previous by thread: Re: Trying to script the creation of a script
  • Next by thread: Re: constructing file name
  • Index(es):
    • Date
    • Thread