On Tuesday, Jan 21, 2003, at 07:49 Canada/Mountain, Chuck Martin wrote:
Thanks, Mark. I will try it. But, being an AppleScript dummy, I can't figure out why the second script will not compile. The syntax checker selects "string" in the line 12, and says a comma was expected instead of a class name. Any idea why?
What for line endings (all lines now end with a --EOL comment)
property dummyEMail : "[EMAIL PROTECTED]" --EOLOn Monday, January 20, 2003, at 05:13 PM, Mark Hartman <[EMAIL PROTECTED]> wrote:
property submittedFolder : "" --EOL
on adding folder items to this_folder after receiving added_items --EOL
�open added_items --EOL
end adding folder items to --EOL
on open added_items --EOL
��set submittedFolder to (path to system folder as string) & "SIMS
Folder:Submitted:" --EOL
�������repeat with theItem in added_items --EOL
��������������if the last character of (theItem as text) is not ":"
then --EOL
�������������������try --EOL
�������������������������set theList to (extract string list from
(theItem as text) id 8192) --EOL
������������������on error errtxt number errnum --EOL
�����������������������tell application "Finder" --EOL
����������������������������������select theItem --EOL
�����������������������������move selection to folder submittedFolder --EOL
����������������������������end tell --EOL
���������������������end try --EOL
��������������try --EOL
�������������������������if the (count of items in theList) is 1 then --EOL
�������������������������������set theList to theList & {dummyEMail} --EOL
������������������������������add string list theList to (theItem as
text) id 8192 with replacing allowed --EOL
�������������������������end if --EOL
����������������������tell application "Finder" --EOL
����������������������������������select theItem --EOL
�����������������������������move selection to folder submittedFolder --EOL
����������������������������end tell --EOL
���������������������on error errtxt number errnum --EOL
�����������������������tell application "Finder" --EOL
�����������������������������������delete theItem --EOL
����������������������������end tell --EOL
���������������������end try --EOL
�������end if --EOL
�end repeat --EOL
end open --EOL
--
I AM ZARDOZ! (kelly) ZARDOZ!
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[EMAIL PROTECTED]>.
To unsubscribe, E-mail to: <[EMAIL PROTECTED]>
To switch to the DIGEST mode, E-mail to <[EMAIL PROTECTED]>
To switch to the INDEX mode, E-mail to <[EMAIL PROTECTED]>
Send administrative queries to <[EMAIL PROTECTED]>
