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

Applescript grammar


  • Subject: Applescript grammar
  • From: Peter Baxter <email@hidden>
  • Date: Sun, 17 Jun 2007 21:31:12 +1000

Hi people.

I'v got bad grammar and can't speak applespeak.

Part of a much larger script would run much faster if i could exclude files that have already been operated on.  To do this, I wish to compare two folders:  those that have been altered, and those in the original folder.

Parts of the script work like this:

tell application "Finder"
activate
select Finder window 1
set target of Finder window 1 to folder "Preview Folder" of folder "ReportSetup" of folder "LocalReports" of folder "Applications" of startup disk
set myPreviews to every file in the front window
end tell

if myChoice is "Year 7" then
select Finder window 1
set target of Finder window 1 to folder "7" of folder "PRINT_DOCUMENTS" of folder "Ararat Community College Quick Vic" of disk "Untitled"
etc

set thisList to every file in the front window that not (exists of myPreviews)


This is the offending instruction  The objection is that the argument is illogical.  What should I say to get the comparison?

Outside of a dog, a book is a man's best friend. Inside a dog, it's too dark to read.  - Groucho Marx

Peter Baxter
email@hidden



 _______________________________________________
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 grammar
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Panel Ended Problems...
  • Next by Date: Re: Applescript grammar
  • Previous by thread: Panel Ended Problems...
  • Next by thread: Re: Applescript grammar
  • Index(es):
    • Date
    • Thread