• 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: Script preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script preview


  • Subject: Re: Script preview
  • From: "Philippe GRUCHET" <email@hidden>
  • Date: Mon, 24 Jun 2002 14:50:23 +0100

Hello,

>>I'd like to know if it's possible to get the contents of a compiled script
>>in a text editor with ALL user styles defined in the Script Editor: fonts,
>>sizes and colors.

> From: Emmanuel <email@hidden>
>
> Did you try Smile? <http://www.satimage-software.com>
>
> Emmanuel

Found a coercion based on Jon9s Commands osaxen:

--start script
load script "HD:" as alias --> put there your path
set x to result as styled text --> coercion based on Jon9s Commands osaxen

tell application "Tex-Edit Plus"
activate
make new window with properties {bounds:{14, 43, 498, 714}, background
color:{marble}}
set contents of window 1 to x

set the_name to (name of window 1) as text
set my_File to ((path to desktop folder) & the_name & ".scpt" as text)
copy (result as string) to my_File
save window 1 in file my_File
select insertion point before (contents of window 1)
end tell

--end script

Best regards,
email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: Script preview
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Question: Setting up a script to watch a folder in OS X?
  • Next by Date: Is AppleScript multi-threaded?
  • Previous by thread: Re: Script preview
  • Next by thread: Re: Script preview
  • Index(es):
    • Date
    • Thread