clear recent files list from the menu

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

clear recent files list from the menu

John Dixon
How do i clear the list of recent files from

file > open recent file >
     
_______________________________________________
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: clear recent files list from the menu

dunbarxx
Hi.


Do you mean the files listed in the "openFiles" function"?


I suppose you would have to get that list, and loop through, closing as you go.


Is there a one-liner that does this?


Craig Newman



-----Original Message-----
From: John Dixon <[hidden email]>
To: use-livecode <[hidden email]>
Sent: Tue, Apr 19, 2016 8:19 am
Subject: clear recent files list from the menu

How do i clear the list of recent files from

file > open recent file >
   
_______________________________________________
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: clear recent files list from the menu

Dave Kilroy
In reply to this post by John Dixon
In LC8, if you go to File/Preferences/Files and Memory and then change the value in "Number of recent files to store" it makes no difference to what is displayed in the 'recent files' list. If you do the same in LC7 it also doesn't seem to make a difference.

But if you do it in LC6 it works - and if you then change the value back up to what it was before it will have 'forgotten' what was there previously (and so effectively clearing files from the list). Now, if having done the deed in LC6, you reopen and check LC7 and LC8 you'll find they also are now boasting reduced 'recent files'

Please note, I only tried this kludge on a mac (el cap) with already installed versions of LiveCode...

Dave

PS: it doesn't feel that this is important enough to create a bug report?
"The first 90% of the task takes 90% of the time, and the last 10% takes the other 90% of the time."
Peter M. Brigham
Reply | Threaded
Open this post in threaded view
|

Re: clear recent files list from the menu

Richard Gaskin
Dave Kilroy wrote:

> In LC8, if you go to File/Preferences/Files and Memory and then change the
> value in "Number of recent files to store" it makes no difference to what is
> displayed in the 'recent files' list. If you do the same in LC7 it also
> doesn't seem to make a difference.
>
> But if you do it in LC6 it works - and if you then change the value back up
> to what it was before it will have 'forgotten' what was there previously
> (and so effectively clearing files from the list). Now, if having done the
> deed in LC6, you reopen and check LC7 and LC8 you'll find they also are now
> boasting reduced 'recent files'
>
> Please note, I only tried this kludge on a mac (el cap) with already
> installed versions of LiveCode...
>
> Dave
>
> PS: it doesn't feel that this is important enough to create a bug report?

If it doesn't work like it says on the tin it's a bug.  It may not be
critical enough to add to the 8.0 queue, but I'm sure the team will want
to address it at first opportunity.  Please do report it.

--
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  [hidden email]                http://www.FourthWorld.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
Reply | Threaded
Open this post in threaded view
|

Re: clear recent files list from the menu

Peter TB Brett
In reply to this post by Dave Kilroy


On 19/04/2016 14:18, Dave Kilroy wrote:

> In LC8, if you go to File/Preferences/Files and Memory and then change the
> value in "Number of recent files to store" it makes no difference to what is
> displayed in the 'recent files' list. If you do the same in LC7 it also
> doesn't seem to make a difference.
>
> But if you do it in LC6 it works - and if you then change the value back up
> to what it was before it will have 'forgotten' what was there previously
> (and so effectively clearing files from the list). Now, if having done the
> deed in LC6, you reopen and check LC7 and LC8 you'll find they also are now
> boasting reduced 'recent files'
>
> Please note, I only tried this kludge on a mac (el cap) with already
> installed versions of LiveCode...
>
> Dave
>
> PS: it doesn't feel that this is important enough to create a bug report?

Please file a bug report!  It might be a quick fix. :-)

                                        Peter

--
Dr Peter Brett <[hidden email]>
LiveCode Open Source Team

LiveCode 2016 Conference: https://livecode.com/edinburgh-2016/

_______________________________________________
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: clear recent files list from the menu

[-hh]
It's a property of stack "revPreferences".
You can get and set it, especially set it to empty.

version < 7: the cRecentPaths
version > 6: the cRecentStackPath

I use it to edit the list, in case I know what I'm doing ;-)
Reply | Threaded
Open this post in threaded view
|

Re: clear recent files list from the menu

[-hh]
| John D. wrote:
| How do i clear the list of recent files from
| file > open recent file >

Sorry had a typo above, here again all, corrected:

constant p="revPreferences"
version < 7: set the cRecentPaths of stack p to empty
version > 6: set the cRecentStackPaths of stack p to empty
Reply | Threaded
Open this post in threaded view
|

Re: clear recent files list from the menu

Mike Bonner
Theres a simple fix.

Change the setprop name in the script of stack "revpreferences" to
cRecentStackPaths

change this line
  set the cRecentPaths of stack "revPreferences" to tRecentPaths

to this
  set the cRecentStackPaths of stack "revPreferences" to tRecentPaths

It looks like when a stack is saved it was updating cRecentStackPaths, but
the setprop was working with an empty cRecentPaths property.

Contradictory naming, changing the setprop back to the older name solves
the problem at which point changing the number of recents in preferences
works again, and updates to the list are tracked correctly.


On Tue, Apr 19, 2016 at 8:28 AM, [-hh] <[hidden email]> wrote:

> | John D. wrote:
> | How do i clear the list of recent files from
> | file > open recent file >
>
> Sorry had a typo above, here again all, corrected:
>
> constant p="revPreferences"
> version < 7: set the cRecentPaths of stack p to empty
> version > 6: set the cRecentStackPaths of stack p to empty
>
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/clear-recent-files-list-from-the-menu-tp4703638p4703647.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: clear recent files list from the menu

Mike Bonner
Oh, one more thing.  YOu don't have to restart lc to get changes to occur,
just do something that triggers the setprop.  (save, or open a stack)

The way it was before, I suspect the recent files list would just grow
forever.

On Tue, Apr 19, 2016 at 9:57 AM, Mike Bonner <[hidden email]> wrote:

> Theres a simple fix.
>
> Change the setprop name in the script of stack "revpreferences" to
> cRecentStackPaths
>
> change this line
>   set the cRecentPaths of stack "revPreferences" to tRecentPaths
>
> to this
>   set the cRecentStackPaths of stack "revPreferences" to tRecentPaths
>
> It looks like when a stack is saved it was updating cRecentStackPaths, but
> the setprop was working with an empty cRecentPaths property.
>
> Contradictory naming, changing the setprop back to the older name solves
> the problem at which point changing the number of recents in preferences
> works again, and updates to the list are tracked correctly.
>
>
> On Tue, Apr 19, 2016 at 8:28 AM, [-hh] <[hidden email]> wrote:
>
>> | John D. wrote:
>> | How do i clear the list of recent files from
>> | file > open recent file >
>>
>> Sorry had a typo above, here again all, corrected:
>>
>> constant p="revPreferences"
>> version < 7: set the cRecentPaths of stack p to empty
>> version > 6: set the cRecentStackPaths of stack p to empty
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/clear-recent-files-list-from-the-menu-tp4703638p4703647.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: clear recent files list from the menu

[-hh]
|= Mike B. wrote:
| There's a simple fix.
| Change the setprop name in the script of stack "revpreferences" to
| cRecentStackPaths
|
| change this line
|   set the cRecentPaths of stack "revPreferences" to tRecentPaths
| to this
|   set the cRecentStackPaths of stack "revPreferences" to tRecentPaths
|
| It looks like when a stack is saved it was updating cRecentStackPaths,
| but the setprop was working with an empty cRecentPaths property.

Could you please add the above to the report? #17467

|= Mike B. wrote:
| The way it was before, I suspect the recent files list would just grow
| forever.

It grows. Look into the prefs 7 stack.
May be this is one possible culprit for 'corrupt' LC 7 prefs.

Originally this second custom property was intended to list
the stackFile 'names' OR the stack names, I presume.
Would be a useful optional choice.
Reply | Threaded
Open this post in threaded view
|

Re: clear recent files list from the menu

Mike Bonner
yeah, ill add it

On Tue, Apr 19, 2016 at 10:34 AM, [-hh] <[hidden email]> wrote:

> |= Mike B. wrote:
> | There's a simple fix.
> | Change the setprop name in the script of stack "revpreferences" to
> | cRecentStackPaths
> |
> | change this line
> |   set the cRecentPaths of stack "revPreferences" to tRecentPaths
> | to this
> |   set the cRecentStackPaths of stack "revPreferences" to tRecentPaths
> |
> | It looks like when a stack is saved it was updating cRecentStackPaths,
> | but the setprop was working with an empty cRecentPaths property.
>
> Could you please add the above to the report? #17467
>
> |= Mike B. wrote:
> | The way it was before, I suspect the recent files list would just grow
> | forever.
>
> It grows. Look into the prefs 7 stack.
> May be this is one possible culprit for 'corrupt' LC 7 prefs.
>
> Originally this second custom property was intended to list
> the stackFile 'names' OR the stack names, I presume.
> Would be a useful optional choice.
>
>
>
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/clear-recent-files-list-from-the-menu-tp4703638p4703652.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: clear recent files list from the menu

Mike Bonner
is there a bug number for the corrupt lc 7 prefs issue?

On Tue, Apr 19, 2016 at 3:11 PM, Mike Bonner <[hidden email]> wrote:

> yeah, ill add it
>
> On Tue, Apr 19, 2016 at 10:34 AM, [-hh] <[hidden email]> wrote:
>
>> |= Mike B. wrote:
>> | There's a simple fix.
>> | Change the setprop name in the script of stack "revpreferences" to
>> | cRecentStackPaths
>> |
>> | change this line
>> |   set the cRecentPaths of stack "revPreferences" to tRecentPaths
>> | to this
>> |   set the cRecentStackPaths of stack "revPreferences" to tRecentPaths
>> |
>> | It looks like when a stack is saved it was updating cRecentStackPaths,
>> | but the setprop was working with an empty cRecentPaths property.
>>
>> Could you please add the above to the report? #17467
>>
>> |= Mike B. wrote:
>> | The way it was before, I suspect the recent files list would just grow
>> | forever.
>>
>> It grows. Look into the prefs 7 stack.
>> May be this is one possible culprit for 'corrupt' LC 7 prefs.
>>
>> Originally this second custom property was intended to list
>> the stackFile 'names' OR the stack names, I presume.
>> Would be a useful optional choice.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://runtime-revolution.278305.n4.nabble.com/clear-recent-files-list-from-the-menu-tp4703638p4703652.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: clear recent files list from the menu

mwieder
On 04/19/2016 02:32 PM, Mike Bonner wrote:
> is there a bug number for the corrupt lc 7 prefs issue?

That's possibly
http://quality.livecode.com/show_bug.cgi?id=16422
and its duplicates.

The way I get around the LC7/LC8 thing is

1. delete or rename the livecode.rev prefs file
2. start LC8 (creates a new file)
3. close LC8 and start LC6

That way LC8 doesn't import the existing earlier preferences file but
instead creates a clean version as livecode7.rev, and then the earlier
versions can create their own version that doesn't interfere.

If LC7/8 creates a livecode7.rev file by importing from livecode.rev
then you get incompatibilities between 7 and 8.

--
  Mark Wieder
  [hidden email]

_______________________________________________
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
--
 Mark Wieder
 ahsoftware@gmail.com
Reply | Threaded
Open this post in threaded view
|

Re: clear recent files list from the menu

Bob Sneidar-2
In reply to this post by Richard Gaskin

On Apr 19, 2016, at 07:22 , Richard Gaskin <[hidden email]<mailto:[hidden email]>> wrote:

If it doesn't work like it says on the tin it's a bug.

If there's bugs in the tin, you may have a decent lawsuit on your hands. :-)

Bob S


_______________________________________________
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