RE: Developing for both Finders? [KINDA SOLVED]
RE: Developing for both Finders? [KINDA SOLVED]
- Subject: RE: Developing for both Finders? [KINDA SOLVED]
- From: email@hidden
- Date: Tue, 13 Aug 2002 11:55:06 -0700
Here's a low-traffic workaround.
Open the file in X.
Write all the X-specific code.
Save the file in X.
Open the file in 9.
The stuff 9 doesn't understand is rendered as raw events, but is
maintained.
Write all the 9-specific code.
Save in 9.
Then, no matter what OS you open it under, the unknown events will just be
raw, and the known ones will be normal.
It's not pretty, but it works.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Seth A. Roby
Scriptwriter Intern
"Life is like an exploded clown. It's really funny until you figure out
what just happened."
email@hidden
To: email@hidden
08/12/2002 08:36 cc: email@hidden
PM Subject: RE: Developing for both Finders?
Seth,
I'm not sure if this will work, but my mind tell me it should:
for os 9:
tell application (full path to OS 9's FINDER in the OS 9 system folder)
put away disk theDisk
end tell
for OS X, keep it the same as before
Best Wishes,
=-= Marc Glasgow
Seth Wrote:
>
>
I'm writing a script that needs to determine what OS is in use, then issue
>
commands to the Finder.
>
>
What I need to do specifically is eject a shared drive.
>
>
But in 9, I'd do
>
put away disk theDisk
>
and in X, I'd do
>
eject disk theDisk
>
>
When I try to compile the script on X, it refuses, saying that the put
away
>
line is wrong, because X's Finder knows no "put away".
_______________________________________________
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.