Re: Open a folder on the desktop from a LiveCode app

2021-06-23 Thread William Prothero via use-livecode
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

2021-06-23 Thread Bob Sneidar via use-livecode
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

2021-06-23 Thread Eller, Roger via use-livecode
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

2021-06-19 Thread Klaus major-k via use-livecode
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


AW: Open a folder on the desktop from a LiveCode app

2021-06-19 Thread Paul Dupuis via use-livecode

Thank you Marty and Mathias

I figured there was a simple way, but must have missed anything about 
folders under the Launch command in the dictionary. All set!




On 6/19/2021 2:48 PM, 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



___
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

2021-06-19 Thread matthias rebbe via use-livecode
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

2021-06-19 Thread Marty Knapp via use-livecode
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


Open a folder on the desktop from a LiveCode app

2021-06-19 Thread 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