Re: Open a folder on the desktop from a LiveCode app
Klaus and others: I love it! I can use this too. Bill Prothero > On Jun 19, 2021, at 12:50 PM, Klaus major-k via use-livecode > wrote: > > Hi Paul, > >> Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode >> : >> >> What is the "best" way (or any way) to open a folder on the Windows desktop >> from a Livecode script. >> >> For example: >> >> on openFolder pPath -- where pPath is the path and name to a document (file) >> set itemDel to slash >> delete last item of pPath -- leaves the the path to the folder containing >> the document >> -- now, how do I open this on the desktop (i.e in Explorer)? > > launch document pPath > ## :-) > >> end openFolder > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > ___ ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Open a folder on the desktop from a LiveCode app
Oooh nice. I have a use for that. Bob S > On Jun 23, 2021, at 11:43 , Eller, Roger via use-livecode > wrote: > > I like to use the full path to the file and use the /SELECT switch. This > opens the folder AND selects the file. > > > on mouseUp > > set the hideConsoleWindows to true > > get shell("explorer.exe /SELECT," & quote & tPathToFile & quote) > > end mouseUp > > ~Roger ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Open a folder on the desktop from a LiveCode app
I like to use the full path to the file and use the /SELECT switch. This opens the folder AND selects the file. on mouseUp set the hideConsoleWindows to true get shell("explorer.exe /SELECT," & quote & tPathToFile & quote) end mouseUp ~Roger From: use-livecode on behalf of Klaus major-k via use-livecode Sent: Saturday, June 19, 2021 3:50 PM To: How to use LiveCode Cc: Klaus major-k Subject: Re: Open a folder on the desktop from a LiveCode app CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Paul, > Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode > : > > What is the "best" way (or any way) to open a folder on the Windows desktop > from a Livecode script. > > For example: > > on openFolder pPath -- where pPath is the path and name to a document (file) > set itemDel to slash > delete last item of pPath -- leaves the the path to the folder containing > the document > -- now, how do I open this on the desktop (i.e in Explorer)? launch document pPath ## :-) > end openFolder Best Klaus ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Open a folder on the desktop from a LiveCode app
Hi Paul, > Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode > : > > What is the "best" way (or any way) to open a folder on the Windows desktop > from a Livecode script. > > For example: > > on openFolder pPath -- where pPath is the path and name to a document (file) > set itemDel to slash > delete last item of pPath -- leaves the the path to the folder containing > the document > -- now, how do I open this on the desktop (i.e in Explorer)? launch document pPath ## :-) > end openFolder Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Open a folder on the desktop from a LiveCode app
launch document tPathToFolder would also work Regards Matthias > Am 19.06.2021 um 20:48 schrieb Paul Dupuis via use-livecode > : > > What is the "best" way (or any way) to open a folder on the Windows desktop > from a Livecode script. > > For example: > > on openFolder pPath -- where pPath is the path and name to a document (file) > set itemDel to slash > delete last item of pPath -- leaves the the path to the folder containing > the document > -- now, how do I open this on the desktop (i.e in Explorer)? > > > end openFolder > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Open a folder on the desktop from a LiveCode app
I use: launch url ("file:" & tPathToFolder) —Marty > On Jun 19, 2021, at 11:48 AM, Paul Dupuis via use-livecode > wrote: > > What is the "best" way (or any way) to open a folder on the Windows desktop > from a Livecode script. > > For example: > > on openFolder pPath -- where pPath is the path and name to a document (file) > set itemDel to slash > delete last item of pPath -- leaves the the path to the folder containing > the document > -- now, how do I open this on the desktop (i.e in Explorer)? > > > end openFolder > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode