Script preview
Script preview
- Subject: Script preview
- From: "Philippe GRUCHET" <email@hidden>
- Date: Fri, 21 Jun 2002 06:26:04 +0100
Hi!
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.
(Without opening the script for a manual copy-paste!).
-- start script
-- To get the contents of a compiled script (osas):
load script "HD:MyScript" -- <-- put there the full path to the script
-- To put the contents of this script in a text editor (here, Tex-Edit
Plus):
set x to result as text
tell app "Tex-Edit Plus"
activate
make new window
set contents of window 1 to x
end tell
-- end script
But, all styles are ignored. The whole text is displayed with
default font & size of the target application, exactly like:
tell app "Tex-Edit Plus" to open file "HD:MyScript"
where MyScript is a non-compiled script (TEXT).
Any idea on how to do this implicit copy-paste with styles?
Based on a preference file (or based on a resource) that contains the
styles?
And which one?
Thank you very much!
My 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.