Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Applescript grammar



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



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

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.