obtaining application paths
Jim Ault
jimaultwins at yahoo.com
Tue Mar 31 18:44:55 EDT 2009
Along the same theme of "publicly available" folders and files,
remember that the user can set Spotlight preferences to exclude
folders (and their contents) from being indexed, so that is not a
reliable option either.
I would think the best way is to do an 'installer' handler, but that
might assume no new Rev versions over the years, and deleting the
old. Perhaps bundle the .so files in your app so you know where they
are.
Jim Ault
Las Vegas
On Mar 31, 2009, at 3:13 PM, Phil Davis wrote:
> Mark Wieder wrote:
>> Jim-
>>
>> Tuesday, March 31, 2009, 10:27:47 AM, you wrote:
>>
>>
>>> What is the best way, on a Mac, to get the path to the various files
>>> included in a Rev distribution. So assuming there is Rev 2.8.1,
>>> 2.9, 3.0
>>> etc. installed on a Mac, and without necessarily running the
>>> version of Rev,
>>> how would you find say the revdb.so for a particular version of Rev?
>>>
>>
>> Don't know about "best", but how about:
>>
>> put "3.0.0" into tVersion
>> put shell("locate revdb.so") into tFiles
>> filter tFiles with "*/" & tVersion & "*"
>>
>> as long as the locate file database has been updated recently.
>>
>>
> However (if I understand correctly), locate only returns file paths
> on *publicly available* volumes. I used it to look for one of my Rev
> standalones; it missed everything except the copies on my external
> HDs. I used 'find' to get paths on my internal (non-public) HD and
> again just in my user account - it worked, but it's very slow. It
> walks all directory trees.
> --
> Phil Davis
>
> PDS Labs
> Professional Software Development
> http://pdslabs.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list