specialfolderpath

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

specialfolderpath

Peter Haworth
How do I get the location of the application folder using specialfolderpath?

With LC 6.6.2 on a Mac, specialfolderpath("Applications") returns
"/Users/<me>/Library/Application Support", not the path to the applications
folder.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: specialfolderpath

Martin Koob
You can use 4 digit codes

http://www.sonsothunder.com/devres/livecode/tips/file010.htm

The application folder is apps

specialfolderpath("apps")


Martin


Reply | Threaded
Open this post in threaded view
|

Re: specialfolderpath

Peter Haworth
Thanks,added it to my useful bookmarks.  Seems like the dictionary should
include all that info instead of the very short list that's in there right
now.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>


On Sat, Jun 21, 2014 at 6:04 PM, Martin Koob <[hidden email]> wrote:

> You can use 4 digit codes
>
> http://www.sonsothunder.com/devres/livecode/tips/file010.htm
>
> The application folder is apps
>
> specialfolderpath("apps")
>
>
> Martin
>
>
>
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680585.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: specialfolderpath

Martin Koob
In reply to this post by Peter Haworth
That looks like a bug.

I found that almost anything you type that is not one of the proper terms will return

/Users/<me>/Library/Application Support

Try
specialfolderpath("Aardvark")
or
specialfolderpath("elvis is alive")

You will get:
/Users/<me>/Library/Application Support

You want to report this as a bug?

You can get applications and the application support folder that is in the /Library folder as well with the four character codes

apps - Applications folder - /Applications
asup - Applications support - /Library/Application Support

These and the others listed in Ken Ray's page http://www.sonsothunder.com/devres/livecode/tips/file010.htm>  are not listed  in the docs.

Martin
Reply | Threaded
Open this post in threaded view
|

Re: specialfolderpath

Martin Koob
In reply to this post by Peter Haworth
Yes the docs should have Those listed.  You can report it as a documentation bug in the QA centre

Martin
Reply | Threaded
Open this post in threaded view
|

Re: specialfolderpath

xtalkprogrammer
In reply to this post by Peter Haworth
Hi,

A more complete list for Mac OS X and Windows is in my book.

Note that you can also use absolute paths like

/Applications
"/Application Support"

and relative paths like

~/Applications
"~/Application Support"

This may make it easier to get to the right folder.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Installer Maker for LiveCode:
http://qery.us/468

Buy my new book "Programming LiveCode for the Real Beginner"
http://qery.us/3fi

LiveCode on Facebook:
https://www.facebook.com/groups/runrev/

On 6/22/2014 03:30, Peter Haworth wrote:

> Thanks,added it to my useful bookmarks.  Seems like the dictionary should
> include all that info instead of the very short list that's in there right
> now.
>
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>
>
> On Sat, Jun 21, 2014 at 6:04 PM, Martin Koob <[hidden email]> wrote:
>
>> You can use 4 digit codes
>>
>> http://www.sonsothunder.com/devres/livecode/tips/file010.htm
>>
>> The application folder is apps
>>
>> specialfolderpath("apps")
>>
>>
>> Martin
>>
>>


_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Kind regards,

Drs. Mark Schonewille

Economy-x-Talk Consultancy and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Facebook: http://facebook.com/LiveCode.Beginner
KvK: 50277553
Reply | Threaded
Open this post in threaded view
|

Re: specialfolderpath

Peter Haworth
In reply to this post by Martin Koob
Will report both these.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>


On Sat, Jun 21, 2014 at 6:43 PM, Martin Koob <[hidden email]> wrote:

> Yes the docs should have Those listed.  You can report it as a
> documentation
> bug in the QA centre
>
> Martin
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/specialfolderpath-tp4680584p4680588.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode