Lost library

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Lost library

Post by dunbarx » Tue Oct 02, 2018 10:28 pm

I know where my LC preferences file is, because I can;

Code: Select all

put the filename of stack "revpreferences"
I get
"...myUsername/Library/Preferences/RunRev/livecode7.rev"
My problem is that I cannot find the designated "Library" folder at all and I certainly cannot find "liveCode7.rev" in any way, including SpotLight.

I am using v8.1.10

I just want to know that I can trash my preferences file if I ever need to.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Lost library

Post by FourthWorld » Wed Oct 03, 2018 12:18 am

By default macOS now tells users the required ~/Library folder doesn't exist. You can navigate to it by using the item for a specific directory in the Finder's Go menu and entering that string, or show hidden folders using this keyboard shortcut:
http://osxdaily.com/2018/02/12/show-hid ... -shortcut/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Lost library

Post by dunbarx » Wed Oct 03, 2018 5:38 am

Richard

The hidden files gadget is cool.

But I still cannot find the preferences file. And I thought I knew how Macs work. :oops:

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Lost library

Post by Klaus » Wed Oct 03, 2018 12:32 pm

Hi Craig,

let LC do this for you! :D

Create a button:

Code: Select all

on mouseUp pMouseButton
   put the filename of stack "revpreferences" into tPath
   set itemdel to "/"
   delete item -1 of tPath
   launch document tPath
   if the result <> EMPTY then
      answer the result
   end if
end mouseUp
Will open that namely folder or may give a hint on what's going wrong.


Best

Klaus

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Lost library

Post by FourthWorld » Wed Oct 03, 2018 2:23 pm

Nicely done, Klaus.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Lost library

Post by dunbarx » Wed Oct 03, 2018 3:04 pm

Thanks to both of you.

I think this is more an "off-topic" thing.

My problem is systemic. When I run Klaus' handler, I get a window showing the contents of the "RunRev" folder. I can see the path of that folder, as per my pathname in the original post above. All good. I can open each and every folder along the way to the file "livecode7.rev".

But if I close out of that window, and try to find the file by main strength, I cannot. I cannot even find the folder "Library" that encloses it. This even with the hidden folders shown.

Again, this is a Mac thing, not a LC thing that I am dealing with. At least I now have access to the pref file, and can delete it if needed. Thanks again.

But does anyone know why I cannot find a file that obviously exists, using either Spotlight or the finder "Find" command? I tried on a laptop at home, and have the same issue. i can find other files, just not this one.

Craig

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Lost library

Post by Klaus » Wed Oct 03, 2018 3:19 pm

Hi Craig,

in 10.7.x you can force to show the library folder, which is hidden by default, with a terminal command: chflags nohidden ~/Library/

After that you should be able to see the library folder in your FINDER window and I guess that is what's going on on your machine.


Best

Klaus

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9580
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Lost library

Post by dunbarx » Wed Oct 03, 2018 3:24 pm

Klaus.

Yes, I was not managing hidden folders very well. It seems all is good now. :oops:

Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”