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: Wai Liu <email@hidden>
- Date: Tue, 20 May 2003 15:48:20 +0800
Hi Thomas,
As the issue is with users of the software, and not myself (i would just trash classic itunes), I don't want to fiddle with their system. That would be quite rude on the part of the software!
I guess one way (as below) is to use NSWorkspace to open iTunes, before invoking the applescript to make sure that the OSX version is up and running. I'm guessing that NSWorkspace only searches the OSX search path...
Thanks,
Simon
>
>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.
_______________________________________________
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.