• 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
AppleScript/Automator Help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AppleScript/Automator Help


  • Subject: AppleScript/Automator Help
  • From: Jeffrey Talbot <email@hidden>
  • Date: Fri, 24 Aug 2007 09:59:10 -0500

Hey folks.

I'm looking for some assistance with an Applescript. This seem relatively easy, but I'm not well versed in writing scripts, and even though I've searched online, I haven't been abel to find what I need.

This script will be the building block of a much larger Automator process, and that part seems pretty cut and dry for me.

Basically, I'm producing radio spots, putting them on a server, and allowing stations to log in to download the spots when they are ready. Each station has their own "home" folder, which has only spots they are to air. There are lots of spots, there are lots of stations and there will be lots of advertisers. Not all spots will go to all stations not all advertisers will buy all stations, so it gets complex pretty quick.


The building block I'm after is a script that when activated, can look at the contents of a folder and:


1. If there are no new files, do nothing
2. If there are files that have been deleted, do nothing
3. if there are files that have been added, create an email to a particular email address, add some boilerplate copy and include a list of the "new" files.


I'm pretty sure I'd be able to duplicate and customize this script for the different stations, changing the mail to address and the copy as needed.


That's really it.

I"m assuming the script will have to have a text file to compare contents with, and that text file can be stored in the same folder the script is monitoring. It would be great if text file were invisible, but that doesn't matter in the long run. I'm also guessing one of the last steps will be the script will be to re-write the text file with the current contents of the folder, so the next time the script is run, it'll have a valid file list to compare for the next pass.


With this building block, the plan is to customize them for lots of different stations, then chain them together for a single advertiser using Automator.


Any help would be greatly appreciated.

JT
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: AppleScript/Automator Help
      • From: Laine Lee <email@hidden>
    • Re: AppleScript/Automator Help
      • From: Rob Stott <email@hidden>
  • Prev by Date: Re: Problem installing ImageMagick
  • Next by Date: Re: Problem installing ImageMagick
  • Previous by thread: Re: Problem installing ImageMagick
  • Next by thread: Re: AppleScript/Automator Help
  • Index(es):
    • Date
    • Thread