Re: Write underlined text to a file
Re: Write underlined text to a file
- Subject: Re: Write underlined text to a file
- From: Emmanuel <email@hidden>
- Date: Thu, 2 Oct 2003 17:26:29 +0200
At 10:36 AM -0400 10/2/03, Timothy K. Wilkinson wrote:
>
I have a script that cleans out folders of old files and writes each file
>
name to a text file before deleting it.
>
>
I'd like to underline or bold the root path of each folder in the text file.
You need a scriptable editor of styled text. TextEdit is one. Smile is another one which is also a script editor for AppleScript, and which is [cool, powerful, lead-free and] free.
If you use Smile you may go this way:
-------------------- tested
set theWindow to (open theFile) -- open the file in Smile
set after text of theWindow to "deleted " & theDeletedFile & return
set style of last paragraph of theWindow to {on styles:{underline, bold}}
save theWindow in 0 -- means: just "save"
--------------------
Emmanuel
_______________________________________________
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.