Re: Write underlined text to a file
Re: Write underlined text to a file
- Subject: Re: Write underlined text to a file
- From: Walter Ian Kaye <email@hidden>
- Date: Thu, 2 Oct 2003 11:22:32 -0700
At 10:36a -0400 10/02/2003, Timothy K. Wilkinson didst inscribe upon
an electronic papyrus:
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.
For example
Path to root folder(underlined)
Path to root folder:file 1
Path to root folder:file 2
I've got all the information written to the file. I just can't figure out
how to tell it to underline or bold. It seems like there has to be a
(somewhat) simple way to do this but I'm stuck. I'm fairly new to using AS
to write to a text file. I'm running 10.2.8.
There is a way, but not very simple. You first need to decide on all
the font attributes: name, size, style and color. Next we take a run
of styled text and deconstruct it to separate the style from the
plain text, and copy/paste the raw style data somewhere (you could
put it in a property or wrap it in a subroutine). Once we have that,
we can construct styled text using the raw style data.
With me so far?
_______________________________________________
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.