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

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.

  • Follow-Ups:
    • Re: Script preview
      • From: Emmanuel <email@hidden>
    • Entourage calendar help ...
      • From: "Domains4Days.com" <email@hidden>
  • Prev by Date: Re: BUG: Where's Application Support?
  • Next by Date: Re: WAS: BUG: Where's Application Support? IS: BBEdit
  • Previous by thread: Wait until Document is open before proceeding
  • Next by thread: Entourage calendar help ...
  • Index(es):
    • Date
    • Thread