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

Scripting-system error


  • Subject: Scripting-system error
  • From: "Monee C. Kidd" <email@hidden>
  • Date: Tue, 22 Apr 2003 23:28:19 -0400

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

Could not run the script "Today" because of a program error.

Above the Edit button is "-1344" but because that means nothing to
me, I click Edit to see if I can figure out what my problem is. I get
another error

Could not read the file because of a scripting-system (OSA) error.

I can no longer open my file, from the menu I get the same error
message. Now what is my problem?!? I had a copy of my silly little
script, I paste it here to see if you can tell me what is something
wrong with it:

tell application "TextEdit"
activate
open alias "Macintosh HD:Users:imani08:Documents:Test.rtf"
set Things_To_Know to text of document "test.rtf"
say "Here's what you need to know: " & Things_To_Know
quit
end tell

Help! I'm ultimately going to put this into a larger script that I
have that I don't want to mess up, what's wrong?
_______________________________________________
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: Scripting-system error
      • From: Deivy Petrescu <email@hidden>
    • Re: Scripting-system error
      • From: "Monee C. Kidd" <email@hidden>
  • Prev by Date: i.e. script question
  • Next by Date: Re: Scripting-system error
  • Previous by thread: i.e. script question
  • Next by thread: Re: Scripting-system error
  • Index(es):
    • Date
    • Thread