Open a stack on the desktop

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
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Open a stack on the desktop

Post by maxs » Wed Jul 29, 2020 10:38 pm

Hi all,

Where can I find the code to open a stack on the desktop from a standalone?

Max

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Open a stack on the desktop

Post by bogs » Wed Jul 29, 2020 10:53 pm

If I understood your question correctly, it would be something like

Code: Select all

open stack(specialFolderPath("Desktop") & "/your_stacks-name.livecode")
This would also work

Code: Select all

go url("binFile:" & specialFolderPath("Desktop") & "/your_stacks-name.livecode")
Last edited by bogs on Wed Jul 29, 2020 10:56 pm, edited 1 time in total.
Image

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

Re: Open a stack on the desktop

Post by Klaus » Wed Jul 29, 2020 10:55 pm

Hi Max,
maxs wrote:
Wed Jul 29, 2020 10:38 pm
Where can I find the code to open a stack on the desktop from a standalone?
here! :-)

Code: Select all

...
put specialfolderpath("desktop") & "/name of your stack here.livecode" into tStack
go stack tStack
...
Best

Klaus

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Open a stack on the desktop

Post by maxs » Wed Jul 29, 2020 10:56 pm

Thanks Klaus,

I just found the previous post I made with the answer. I do not know how to delete this post.

Max

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

Re: Open a stack on the desktop

Post by Klaus » Wed Jul 29, 2020 11:05 pm

Hi Max,
maxs wrote:
Wed Jul 29, 2020 10:56 pm
I just found the previous post I made with the answer.
where is it?
maxs wrote:
Wed Jul 29, 2020 10:56 pm
I do not know how to delete this post.
No need to delete this post, maybe it will be helpful for others!


Best

Klaus

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”