Re: Beginner here
Re: Beginner here
- Subject: Re: Beginner here
- From: "Marc K. Myers" <email@hidden>
- Date: Thu, 23 May 2002 01:25:00 -0400
- Organization: [very little]
>
From: "Galke, Mike" <email@hidden>
>
To: "'email@hidden'"
>
<email@hidden>
>
Subject: Beginner here
>
Date: Wed, 22 May 2002 17:20:01 -0400
>
>
1) I need to copy stuff from a server volume to a local folder (easy enough
>
to do), but at a specific time in the middle of the night (completely devoid
>
of resources for this, unless I'm totolly stupid). So, basically I need to
>
know how to make a script go off at a particular time.
If you're running a pre OS X version of the operating system, get a copy
of the free iDo Script Scheduler software from Sophisticated Circuits.
Apple shipped copies with some versions of their OS software CDs. If
you're running OS X, there's a UNIX utility called Chron that will
schedule the running of any application.
>
2) How would I even BEGIN to go about creating a script that would find and
>
replace various unwanted items, such as double-spaces, those little (>>)
>
characters, usually found in emails, and/or create a (-) instead of (--).
This is a general purpose find-and-replace handler (with example):
set theText to "overbearing"
set srchStrng to "over"
set replStrng to "On"
set theText to textReplace(theText, srchStrng, replStrng)
on textReplace(theText, srchStrng, replStrng)
tell (a reference to AppleScript's text item delimiters)
set {od, contents} to {contents, {srchStrng}}
try
set {textList, contents} to {(text items of theText), {replStrng}}
set {newText, contents} to {(textList as text), od}
return item 1 of result
on error errMsg number errNbr
set contents to od
error errMsg number errNbr
end try
end tell
end textReplace
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[5/23/02 1:23:58 AM]
_______________________________________________
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.