Re: How to stop Classic launching iTunes? (Cocoa & Applescript)
Re: How to stop Classic launching iTunes? (Cocoa & Applescript)
- Subject: Re: How to stop Classic launching iTunes? (Cocoa & Applescript)
- From: Tomas Zahradnicky <email@hidden>
- Date: Tue, 20 May 2003 08:13:11 +0200
Hi,
I've had the same problem with Apple System Profiler - on my iBook, my
NSAppleScript script launches Classic's System Profiler, and not the OSX
version.
I haven't looked into the problem much, but is there a way to specify the
path to the program?
Just an idea: use NSWorkspace to launch the program? Maybe this
will launch the right version already, maybe you can give it a full
path. If you then still need to perform AppleScripts, maybe it will
use the already-launched version.
I had that idea, but it comes from the assumption that you know the
path. If you don't know the path or iTunes are not within the
application folder you cannot easily find them.
However if iTunes is already launched, AppleScript prefers the
launched copy, of course.
You might want to remove Launch Services Database and Desktop
Database and let OS create them again. That might solve the problem.
-Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.