• 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: Script tell the wrong app ! (Thomas C.)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script tell the wrong app ! (Thomas C.)


  • Subject: Re: Script tell the wrong app ! (Thomas C.)
  • From: Jocelyn Granger <email@hidden>
  • Date: Tue, 11 Nov 2003 21:25:03 -0800

Regarding:
Message: 4
To: AppleScript <email@hidden>
From: "Thomas C." <email@hidden>
Subject: Script tell the wrong app !
Date: Fri, 7 Nov 2003 18:26:30 +0100

Hi all, I have a problem with a script I've made that tells Photoshop.
I sent it to a costumer but when he launches it, Image Ready opens and
an error comes !
My script does not deal at all with Image Ready, only with Photoshop...
so it seems that my script try to tell to wrong app : IR instead of PS
and an error come because the code is made for PS.
Does someone know why this happens and what can I do to make this
script running on my costumer's computer (the same script works great
on my mac) ?

Thanks Thomas
...........................
Thomas, I might have a similar problem. Here's what happened to me:

BBEdit was on my iMac, and an icon for BBEdit was in the Dock. I had a compiled script that contained this line:
tell application "BBEdit 6.1 for OS X"
as well as several references to selection (i.e., references to the BBEdit characters that were selected).

After I installed both versions of Mac OS X 10.2.8, BBEdit disppeared from the Applications folder, and the BBEdit icon in the Dock changed to a question mark.

I've since installed Panther. I haven't re-installed BBEdit on my iMac, but I have a backup copy of BBEdit on my LaCie external hard drive.

Now if my LaCie is turned on when I open the script in the script editor, the correct text appears, and the copy of BBEdit that's on the LaCie is launched.

However, if my LaCie is not turned on when I open the script, the tell statement in the script editor window is this line:
tell application "find bochs"
references to selection are replaced by references to +class pusl;, and when I run the script, application "find bochs" activates (instead of BBEdit).

Has either computer (yours or your customer's) had problems with Mac OS X 10.2.8 and/or with directories getting messed up?

I recommend that you open your script in the script editor on your client's computer. Look at the lines where you expect to see tell statements to Photoshop. You might see tell statements to Image Ready instead. If so, make sure that Photoshop is still installed on that computer.

I'll probably re-partition my iMac's hard drive soon. After I do so, I won't be able to duplicate this problem, because (hopefully) the directory problems of 10.2.8 will be fixed. Do you want me to do any more checking of this AppleScript problem before I re-partition the hard drive?

Jocelyn Granger
_______________________________________________
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.

  • Prev by Date: Re: importing new video track with Quicktime
  • Next by Date: Re: Weird dialog box...
  • Previous by thread: Re: Weird dialog box...
  • Next by thread: do script issue when converting PDF to XML
  • Index(es):
    • Date
    • Thread