Re: Script preview
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.