Re: Script tell the wrong app !
Re: Script tell the wrong app !
- Subject: Re: Script tell the wrong app !
- From: "Thomas C." <email@hidden>
- Date: Thu, 13 Nov 2003 00:04:12 +0100
Thanks all for your answers :
Walter Ian Kaye wrote :
Could you post the [relevant portion(s) of the] script?
Out of curiosity: did you have IR running when you compiled the script
that your customer (costumer?) is using?
No but maybe my customer has IR open the first time he used my script...
Does PS still use '8BIM' as its creator code? Is IR's different?
PS uses "8BIM" but IR uses "MeSa", so it's different...
Jocelyn Granger wrote :
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).
Yes think that's exactly the same problem I encounter. It seems that's
because an AppleScript application has the ability to edit itself so
the code can change... I won't encounter this problem when I'll convert
my project to an AppleScript Studio application I think :-) (AS Studio
applications ressources can't change).
Has either computer (yours or your customer's) had problems with Mac
OS X 10.2.8 and/or with directories getting messed up?
My customer and I are running Mac OS 9.2.2.
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.
Absolutely that would be the best method to discover and fix the
problem but my customer's computer is thousand miles away from me
(that's why I post to this list) ;-)
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?
No I understand the problem now, thanks ;-)
Walter Ian Kaye wrote :
OK, that makes one possible cause unlikely. Hmm.
Maybe the user just need to rebuild his desktop files (OS X: clear
caches).
Lessee... northernsoftworks.com?
Yea I thought of that too, if nothing else works, I'll ask him to try
this (OS 9).
John W. Baxter wrote :
Still later, when neither the project nor Think C was running, I
foolishly
ran the script yet again...that's when AppleScript asked the system to
launch the project file as if it were a proper application. (That
doesn't
work well.)
Yea definitely there's some issues here when running a script on a
different computer that the one from where it was compiled.
Ian King wrote :
Bonjour Thomas,
OS 9, or OS X?
ImageReady handles the same types of files,
it just happens to get there 1st, on your customers Mac.
So your Script is not only for your Mac,
you could try and use the 'application file id' method instead.
This way, you do not need to know where Photoshop is kept on their Mac.
-- OS 9
tell application "Finder"
set theApp to application file id "8BIM" as string -- Photoshop id
end tell
tell application theApp -- Photoshop
activate
-- do your stuff
end
-- or just use;
Open application file id "8BIM" -- before you;
Tell app "Photoshop"
Hope that helps "un petit peu"
Regards, Ian
Bonnour ;-)
My customer and I are using OS 9.
Thanks for your workaround, I'll use it if my customer can't fix the
problem on his computer.
For now, I asked him to trash my script, close IR, open PS and
decompress my script from a mail (compressed in .sit) and try again.
He hasn't send me feedback yet.
Thanks all Thomas
_______________________________________________
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.