• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Write underlined text to a file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Write underlined text to a file (From: "Timothy K. Wilkinson" <email@hidden>)

  • Prev by Date: Write underlined text to a file
  • Next by Date: Re: From Mac Os X Mail to FileMaker
  • Previous by thread: Write underlined text to a file
  • Next by thread: Re: Write underlined text to a file
  • Index(es):
    • Date
    • Thread