Other File Extensions than rev?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Other File Extensions than rev?

Post by MasterchiefJB »

Is it possible to save the stacks with another filetype than .rev? I would really like to save them as .dll (if this is possible^^)

Thanks,
Masterchief
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Other File Extensions than rev?

Post by Klaus »

Why don't you just try?

At least you are a Masterchief, right? :D


Best

Klaus

P.S.
Changing a suffix does not alter the stuff inside of the file, just in case you did not know...
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Other File Extensions than rev?

Post by MasterchiefJB »

Well I already tried some ways but the result was negativ. Do you know a way to do this?

- I just call me Masterchief because I really like the Halo Triology :D


Thanks
Masterchief
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Other File Extensions than rev?

Post by Klaus »

Hi Masterchief,

ah, looks like I misunderstood you!
Nope, Rev can only save Revolution documents, no matter what suffix you append :-)


Best

Klaus
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Other File Extensions than rev?

Post by FourthWorld »

Rev works with .rev files. You can build standalones that use stack files with any file extension you like:

Setting Document Associations in Windows
http://sonsothunder.com/devres/revoluti ... ile004.htm

Setting Document Associations With OS X
http://sonsothunder.com/devres/revoluti ... ile005.htm
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Other File Extensions than rev?

Post by MasterchiefJB »

Thank you! I learned how to connect my App with a specific File type (for example my app is launched when I double click on a pdf file) but I still would like to know wheter the stack files itself can be saved in another format?

From the post of Klaus I guess that can´t be done but I would like this to be clarified.
Thanks,
Masterchief
BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Other File Extensions than rev?

Post by BvG »

There is no build in way to save a stack as (for example) xml formatted text, or any other format that is not rev-build-in-binary-format. However you can of course export your data in a way that suits you, and there have been trials to export a stack into custom formats. But no, there's no build in way to do that with a single line.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Other File Extensions than rev?

Post by MasterchiefJB »

Thank you very much BvG! Then I will stay with the rev format :D
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Other File Extensions than rev?

Post by FourthWorld »

MasterchiefJB wrote:Thank you! I learned how to connect my App with a specific File type (for example my app is launched when I double click on a pdf file) but I still would like to know wheter the stack files itself can be saved in another format?
Sorry, I missed the bit about DLL. Why DLL? Normally those are used for a very specific purpose, as a shared library to be called from other apps. If your goal is IPC there may be other ways to achieve it.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Other File Extensions than rev?

Post by MasterchiefJB »

Actually I just wanted to hide the rev stacks and show them as dll files so nobody could guess that this application is running with Revolution (they should guess it runs with C++ or another Language -> therefore I wanted to use dll files.)

But if I can´t do so I will stay with the rev stacks^^
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Other File Extensions than rev?

Post by FourthWorld »

MasterchiefJB wrote:Actually I just wanted to hide the rev stacks and show them as dll files so nobody could guess that this application is running with Revolution (they should guess it runs with C++ or another Language -> therefore I wanted to use dll files.)

But if I can´t do so I will stay with the rev stacks^^
That part was what I had provided a solution for earlier.

The internal format of the stack files cannot be changed, but using the info I provided you can changed the file name extension to anything you like.

I've never deployed any documents or plugins for my apps with the ".rev" file extension. It's so easy to change you should never need to, and indeed it's a good idea to change it to something else because double-clicking a .rev file will launch rev rather than your app.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Other File Extensions than rev?

Post by MasterchiefJB »

That part was what I had provided a solution for earlier.

The internal format of the stack files cannot be changed, but using the info I provided you can changed the file name extension to anything you like.

I've never deployed any documents or plugins for my apps with the ".rev" file extension. It's so easy to change you should never need to, and indeed it's a good idea to change it to something else because double-clicking a .rev file will launch rev rather than your app.
I am sorry FourthWorld but I believe this is the part of our discussion I didn´t understood;)
Could you give me an example how to archive that?

Just renaming the extensions doesn´t work and I don´t know how to actually do it.
Any advise or an example would be appreciated!

Regards,
Masterchief
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Other File Extensions than rev?

Post by FourthWorld »

Renaming the extensions won't take care of the plist file OS X needs or the registry entries Windows needs.

The two links I provided earlier to the Tips at Sons Of Thunder's site are the best references I know of for using custom file extensions.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
MasterchiefJB
Posts: 76
Joined: Sat Nov 07, 2009 7:43 pm

Re: Other File Extensions than rev?

Post by MasterchiefJB »

Well the tipps provided by Sons of Thunder don´t work here for me, but I guess this happens because the app needs the Vista Manifest to work correctly (using win7)
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Other File Extensions than rev?

Post by FourthWorld »

Could be. What specifically isn't working?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply