Title: Re: AppleScript to backup Entourage data
On 1/22/01 12:47 AM, "Jeff Porten" <[EMAIL PROTECTED]> wrote:
> Sorry about that. In fact, I did check my outgoing mail window for hard
> returns, but forgot that they'd be added after they were sent. My apologies.
>
>
Yes, they get added when sent out by Entourage or by your ISP's mail server. I'm not sure which (the former, I think). But in HTML, even using larger font size where the lines soft-wrap to a second line, this doesn't happen. You can still copy and paste into a script editor directly from the email and it will do its own softwrapping in the script editor with no bad syntax. To demonstrate, I'm converting your script here to plain text, then back to HTML (Verdana medium). Even though some of the lines wrap, there will be no added carriage returns. It will paste into SE as well as the styled version. It looks like a very good script to me. It's also small enough that the styled version won't have caused anyone any problems – it was just 8 KB.
tell application "Finder"
activate
--If backup data exists
if folder "Documents:Microsoft User Data backup" of startup disk exists then
--If age of backup data is over 1 day
if modification date of folder "Documents:Microsoft User Data backup" of startup disk < ((current date) - 1 * days) then
--If secondary backup exists
if folder "Documents:Microsoft User Data old backup" of startup disk exists then
--Delete old secondary backup
move folder "Documents:Microsoft User Data old backup" of startup disk to trash
--Rename old backup to secondary backup
set the name of folder "Documents:Microsoft User Data backup" of startup disk to "Microsoft User Data old backup"
--Make new backup
set NewBackup to duplicate folder "Documents:Microsoft User Data" of startup disk
set the name of NewBackup to "Microsoft User Data backup"
end if
end if
else
--Make new backup
set NewBackup to duplicate folder "Documents:Microsoft User Data" of startup disk
set the name of NewBackup to "Microsoft User Data backup"
end if
end tell
--
Paul Berkowitz
- re: AppleScript to backup Entourage data chris stearns
- Re: AppleScript to backup Entourage data Paul Berkowitz
- Re: AppleScript to backup Entourage data Jeff Porten
- Re: AppleScript to backup Entourage data Paul Berkowitz
- Re: AppleScript to backup Entourage data Michael W. Wellman
- Re: AppleScript to backup Entourage da... Jeff Porten
- Re: AppleScript to backup Entoura... Michael W. Wellman
- Re: AppleScript to backup Ent... Eric Hildum
- Re: AppleScript to backup... Allen Watson
- Re: AppleScript to backup... Paul Berkowitz
- Re: AppleScript to backup... p | m | d
- Re: AppleScript to backup Entourage data chris stearns
- Re: AppleScript to backup Entourage data Michael W. Wellman
- Garbled messages in IMAP inbox Patrick Ryall
