Toolbar option For 'Save as Standalone'

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
SteveHanlan
Posts: 80
Joined: Fri Jul 09, 2010 6:28 pm

Toolbar option For 'Save as Standalone'

Post by SteveHanlan » Mon Aug 08, 2011 7:41 am

I would be really nice to have a single button to do the save, it's just 'fussy' to click 'file' and then 'save as standalone' every time I compile and copy to my device. (which I seem to do a lot)

Just me being lazy.

Thanks

Steve

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: Toolbar option For 'Save as Standalone'

Post by shaosean » Mon Aug 08, 2011 9:32 am

Write one.. THat is one of the best "features" of Rev, you can add whatever features you want..

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Toolbar option For 'Save as Standalone'

Post by Mark » Sun Aug 14, 2011 12:16 am

Steve,

Here's a script to get you started:

Code: Select all

on mouseUp
  save the topStack
  put empty into gRevStackStatus[the short name of the topStack]
  repeat for each line myStack in (the substacks of stack (the mainstack of the topStack))
    put empty into gRevStackStatus[myStack]
  end repeat
  send "revSaveAsStandalone" && quote & the short name of the topStack & quote to stack "revSaveAsStandalone"
end mouseUp
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Toolbar option For 'Save as Standalone'

Post by dunbarx » Sun Aug 28, 2011 5:15 pm

And you can set a functionKey or whatever to invoke the process.

One of the things that once bothered me was when copying a script from the script editor, all the styles were copied as well. This was generally rejected by the mail list server because of the excessive size of the file, even if the script was just a few lines. So I wrote a simple routine that created a plain text version of whatever was in the clipboard and put it in the library, called by a functionKey.

Post Reply