Cool, this is very useful. If you post a bug, patch or feature
request to the tracker? Then I'll look into it when I have a chance.
.hc
On Feb 13, 2008, at 7:36 PM, marius schebella wrote:
ok. since steffen got different behaviour on his computer, I did some
more testing, and indeed with the current format given in plist for
the key CfBundleVersion this information is useless, because osx
cannot interpret it correctly. that means the default app is the
one that you installed first. also, Info.plist is only read the
very first time you start the application, so in order for the
version number to take effect, you have to delete the app and
reinstall it. I tested two different autobuild versions, one from 20071117 and
one from 20080117. the one that I installed first became the default version and could
not be changed later. then I used a different format for CfBundleVersion (0403.71.117 vs.
4003.80.117 [osx will only read 9 numbers!]) and then always the
latest release became the default, no matter which version was
installed first. I don't know what a good version naming scheme would be, and also
pd-extended does not conflict with pd vanilla or for example netpd
(I guess because these use different preference files for plist). so - the advantage of using CfBundleVersion would be that always
the latest (of several) autobuild versions would be selected as the
default app to open *.pd (and *.pat) files. I think this would be
helpful marius.Hans-Christoph Steiner wrote:
Can't hurt. Let us know what happens. .hc On Feb 13, 2008, at 2:08 PM, marius schebella wrote:
but the registration is system intern and I cannot access it and
change it and therefore have problems when I want to use a
different release version as default. after googleing information on how Info.plist works, I came
across this link http://www.dribin.org/dave/blog/archives/ 2006/08/02/versioning_os_x_apps/ and thought maybe changing the CfBundleVersion entry to a correct
format (nn.n.nxnnn) could solve this problem, but I am not sure
(I will try...). what do you think? marius.Hans-Christoph Steiner wrote:
It's not a secret, it's decently documented on Apple's site.
The registration happens when you start the app. The OS reads
the "Contents/Info.plist" that's inside the app when you launch it. .hc On Feb 12, 2008, at 6:46 PM, marius schebella wrote:true. it is apple's big secret where exactly this gets
registered... marius.Hans-Christoph Steiner wrote:
Yup, fun fun fun. I have found that it'll only register a
given copy of Pd if you run it. .hc On Feb 12, 2008, at 5:27 PM, marius schebella wrote: > the latest on this topic. I finally figured out, why osx
> associates so many Pd versions with the *.pd file extension.
> osx indexes also applications that are not in the / > Applications folder at all, but somewhere on the harddrive
> (for example in "build" folders or downloaded files folders). > I only got rid of these versions in the "open with" entries
> by deleting the unwanted apps themselves. both "open with"
> and also the drop down menu in the get info dialog are
> working again. > I also think different release versions which use the same
> pref file, like org.puredata.plist (in ~/Library/Preferences)
> will always switch to the newest version by default,
> therefore you cannot chose version 40-2 if there is also a
> version 40-3, 41.0. since some pd versions use a different
> name for the prefs file, it is sometimes possible to set
> another pd version as the default app for *.pd files. > marius. > > marius schebella wrote: >> Yes, that is true, but it was the only possibility to get
>> rid of the double entries. at least the only one that I found. >> marius. >> Hans-Christoph Steiner wrote: >>> >>> Watch out, I am pretty sure that it deletes all your
>>> associations as well, and will prompt you again with the
>>> "this App hasn't been run before, run it?" dialog. >>> >>> .hc >>> >>> On Oct 31, 2007, at 12:44 PM, Dafydd Hughes wrote: >>> >>>> boy. i'm gonna bookmark this one! >>>> >>>> On 31-Oct-07, at 12:39 PM, marius schebella wrote: >>>> >>>>> I finally found the solution to this annoying problem. >>>>> you have to rebuild the launch service database (see
>>>>> http://www.macosxhints.com/article.php? >>>>> story=20031215144430486 ) >>>>> I ran the following command, and that fixed it. >>>>> >>>>> /System/Library/Frameworks/ApplicationServices.framework/ >>>>> Frameworks/LaunchServices.framework/Support/lsregister - >>>>> kill -r -domain local -domain system -domain user >>>>> >>>>> marius. >>>>> >>>>> Hans-Christoph Steiner wrote: >>>>>> This is a bug I run into a lot. Basically, if you have
>>>>>> a lot of versions of Pd, it confused the assocations
>>>>>> system. Try removing random ones. I have found that I
>>>>>> have to clean out the associations system from time to
>>>>>> time because I am always trying many different versions. >>>>>> I forgot how to do it now... I think it's done by
>>>>>> deleting some file in /Library/Caches and rebooting. >>>>>> .hc >>>>>> On Oct 2, 2007, at 11:45 AM, marius schebella wrote: >>>>>>> yes, that should do it, but not here. when I select Pd- >>>>>>> extended it >>>>>>> immediately get reset. there must be some hidden
>>>>>>> mechanism that always >>>>>>> choses the newer version or a file where that is stored... >>>>>>> I have no clue what I have to search for to get this
>>>>>>> fixed. >>>>>>> marius. >>>>>>> >>>>>>> Dafydd Hughes wrote: >>>>>>>> Hi Marius >>>>>>>> >>>>>>>> This worked for me: >>>>>>>> >>>>>>>> In Finder, Get Info on any Pd file, Open With ->
>>>>>>>> choose your version >>>>>>>> -> Change All... >>>>>>>> >>>>>>>> Hope this helps >>>>>>>> >>>>>>>> cheers >>>>>>>> dafydd >>>>>>>> >>>>>>>> On 10/2/07, marius schebella
>>>>>>>> marius.schebella@gmail.com wrote: >>>>>>>>> Hi, >>>>>>>>> I have two versions of pd-extended on my mac: pd- >>>>>>>>> extended (0.39) and >>>>>>>>> pd-0.40.3-extended. I want all pd files to be opened
>>>>>>>>> with 0.39 by default. >>>>>>>>> Instead os x tries to open all Pd files with a
>>>>>>>>> version (0.40.3) which I >>>>>>>>> deleted some time ago. >>>>>>>>> oh, how I hate stupid MACOS X! >>>>>>>>> anyway, how can I change that. I tried to use
>>>>>>>>> applications like xray, >>>>>>>>> but whenever I change the settings to the older
>>>>>>>>> version it gets >>>>>>>>> overwritten by that fascist OS that thinks it is
>>>>>>>>> cleverer than me. >>>>>>>>> marius. >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> PD-list@iem.at mailing list >>>>>>>>> UNSUBSCRIBE and account-management -> http:// >>>>>>>>> lists.puredata.info/listinfo/pd-list >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> PD-list@iem.at mailing list >>>>>>> UNSUBSCRIBE and account-management -> http:// >>>>>>> lists.puredata.info/listinfo/pd-list >>>>>> ----------------------------------------------------------- >>>>>> ----------------- Man has survived hitherto because he
>>>>>> was too ignorant to know how to realize his wishes. Now
>>>>>> that he can realize them, he must either change them, or
>>>>>> perish. -William Carlos Williams >>>>> >>>> >>>> >>>> -- >>>> www.sideshowmedia.ca >>>> skype: chickeninthegrass >>>> >>> >>> >>> -------------------------------------------------------------- >>> -------------- >>> >>> Access to computers should be unlimited and total. - the
>>> hacker ethic >>> >>>>>>
--------- All information should be free. - the hacker ethic
------- kill your television
There is no way to peace, peace is the way. -A.J. Muste