• 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: Scripting-system error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting-system error


  • Subject: Re: Scripting-system error
  • From: Deivy Petrescu <email@hidden>
  • Date: Wed, 23 Apr 2003 00:56:26 -0400

On Tuesday, April 22, 2003, at 11:28 PM, Monee C. Kidd wrote:

OK. I have a short, 7 line script, the same one I've been wrestling
with since Sunday. I finally figured out how to make it open a
TextEdit file and read the contents. It works perfectly from the
Script Editor when I press play. So I went to save it as an
application and it saves. I go to the finder to launch it, and I get
an error message


Monee, you did not have this script running. TextEdit needs a list of alias to open.
so change your script as follows...

tell application "TextEdit"
activate

open { alias "Macintosh HD:Users:imani08:Documents:Test.rtf"} -- add curly braces around the ailas

set Things_To_Know to text of document "test.rtf"
say "Here's what you need to know: " & Things_To_Know
quit
end tell


This should do it.


Regards

Deivy Petrescu
http://www.dicas.com/
_______________________________________________
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: 
 >Scripting-system error (From: "Monee C. Kidd" <email@hidden>)

  • Prev by Date: Re: calling a Classic osax from X
  • Next by Date: Re: Dropin'
  • Previous by thread: Re: Scripting-system error
  • Next by thread: Scripting-system error
  • Index(es):
    • Date
    • Thread