• 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: Unreadable script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unreadable script


  • Subject: Re: Unreadable script
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 13 Mar 2001 08:51:05 -0800

On 3/13/01 12:00 AM, Daniel Shockley <email@hidden> wrote:

>Did you try opening it with a hex editor (like HexEdit - available on
>versiontracker.com)? I tried
>this out on a good script, and it worked.

Interesting; I looked at the resource with hex editor, but didn't try to
copy it into another resource as you described.

Next time I have a script get corrupted (but I hope it won't happen
again), I'll give it a try.

In the meantime, I rewrote the script from scratch, and did a much better
job of it (although from the user's viewpoint, works the same) than the
first time. (I originally wrote it some four or so years ago.)

And then I tweaked it slightly again today.

The tweak was changing it from

if foo exists then
do stuff to foo
else
display error
end if

to

try
do stuff to foo
on error
display error
end try

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: Re: Getting body of an incoming Claris Emailer message
  • Next by Date: Re: Can anyone explain Word behavior???
  • Previous by thread: Re: Unreadable script
  • Next by thread: Can I get the pathname of a file open in a not AS-scriptable application?
  • Index(es):
    • Date
    • Thread