Re: (no subject)
Re: (no subject)
- Subject: Re: (no subject)
- From: Axel Luttgens <email@hidden>
- Date: Thu, 15 Apr 2004 16:44:32 +0200
Oakley Masten wrote:
Axel Luttgens wrote
[...]
Could you reproduce here the code portions surrounding the "choose
folder" statement?
This is the start of the script for the second situation.
property Folder2Do : {}
tell application "Finder"
activate
display dialog "You must have the EXCEL Sheet OPEN already" & return &
"If NOT - Cancel now" default button "Cancel"
set Folder2Do to choose folder
end tell
the script then compares the names of the files with the data in the
excel sheet for name verification.
At first glance, nothing very special in the above: it should work
everywhere.
Anyway, just to be sure, I tried it here verbatim (on Panther 10.3.3 -
don't have any 10.3.2 at hand anymore), and it worked as expected.
Now, as other people have already noted, it is generally a good idea to
put commands outside any "tell" block whenever possible; in this case:
property Folder2Do : {}
tell application "Finder" to activate
display dialog "You must..." default button "Cancel"
set Folder2Do to choose folder
But this shouldn't be the source of your problems here.
The script didn't run at all on Ricks iMac G4 Panther and it quit
working after choose the "Open" button on a second machine tower G4
Panther.
You said above that the script then goes further with the data in an
Excel sheet.
Are you already in a "tell" block targeted to Excel, or do you enter in
such a block after the "choose folder" statement?
Which leads me to another question: are Excel's installs identical on
all machines?
It worked fine one a third machine G4 running Jaguar.
It has been suggested to upgrade your 10.3.2 machines to 10.3.3.
Did you give a try to this?
(but I couldn't find in the 10.3.3 upgrade anything obviously related to
AppleScript)
As well as, one never knows, see if the problematic machines differ in
their hardware (for examples, with regard to peripherals).
I am inquiring about machine configuration and will let you know.
I asked mainly because some peripherals come with very... let's say,
"complete" installers.
The scripts work perfectly on all Jaguar systems.
They also run perfectly on most Panther systems.
BUT
On these 2 Panther 10.3.2 systems when the "choose folder" is called
there is no "Choose" button to choose - only an "Open" button.
If you choose the "Open" button the script crashes.
In your previous post, you didn't speak about a crash.
Which behavior exactly are you encountering?
In the first case - a script for Photoshop - when the "Open" button was
clicked - every image - 87 total - opened in "Preview"
and the script quit running.
Hmm... as if the Finder got a request to open those files.
in the second case - a script for Excel - the script either didn't run
at all
In what sense? Does the script not even reach the dialog? Or does it
remain inert upon double-click?
or it quit running after clicking the "Open" button.
Could you put a beep statement (for example) just after the "choose
folder" statement?
Just to know wheter the quit occurs because of the "choose folder", or
because of a subsequent statement?
[...]
That idea about a scripting addition interfering with Standard
Additions
is still not to be neglected.
Could you have a look at every place where scripting aditions may be
put, ie:
startupdisk:System:Library:ScriptingAdditions:
startupdisk:Library:ScriptingAdditions:
startupdisk:Users:thisuser:Library:ScriptingAdditions:
and tell us what you find there (name, version)?
Again, I will check this out and let you know.
_______________________________________________
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: | |
| >(no subject) (From: Oakley Masten <email@hidden>) |