Sub-Subject: Detecting user selected files/folders in Windows and other
OSes.
I like to refer to the last message from -hh (see reference below)
regarding Windows possibility of detecting selected items (folders, files,
icons as such) on the Windows Desktop. The solution -hh already provided
when
I'll toss together an Applescript for you when I get a chance.
Bob S
> On Mar 14, 2019, at 06:25 , R.H. via use-livecode
> wrote:
>
> I am referring to:
> Message: 17, Date: Thu, 14 Mar 2019 00:44:05 +0100, From: hh >
>
> Regarding MacOS I can not say much, but I use Windows, and IT
I had drag and drop in my macOS app but … when going with the AppStore, and
sandboxing, there was no way for drag and drop to trigger the sandbox
permission that would allow the app to read that file. I knew which file, but
since it did not go through the dialog box, the permission wasn’t set.
Hi,
I use MacOS or linux (on Raspi only), never really worked with windows.
I'm using Windows only to test my stacks/apps on the PC of my youngest son.
Scripting Host-WScript can execute JScript, the MS-extension of ECMAScript. It
has a
lot of features. We probably can use a lot of these
hh, I have one more question for Windows: Selecting a file through
Microsoft File Explorer on Windows 10 works for all selected files with
your wscript, also when it is a Desktop file accessed through the dialogue.
The problem I have is when the user selects a file _directly_ visible on
the
I am referring to:
Message: 17, Date: Thu, 14 Mar 2019 00:44:05 +0100, From: hh
Regarding MacOS I can not say much, but I use Windows, and IT WORKS.
'hh ' = Hermann's contribution, right? This fantastic. I never expected
anybody to have a solution. I had searched Git and whatever.
Well, first
** Get selected files of the file manager (without user interaction like
dragDrop) **
(I write the following such that also beginners can read it.)
+++
[a] Solution for MacOS (tested to work on MacOS 10.14):
(a1) Put the following in a field "myScript".
# Full path of
Jacqueline:
on dragDrop -- check for file paths
get the dragData["files"]...
pass dragDrop end dragDrop
Jacqueline, thank you. I know this and wrote about it.
Here I want to know the filename and path which is
user-selected in the OS (on Windows File Explorer) without dragging
I think he was trying to get the OS to tell him which files were hilited by the
user without having to drag and drop. At least that is what I got from the
post.
Bob S
> On Mar 12, 2019, at 11:17 , J. Landman Gay via use-livecode
> wrote:
>
> See the entry for dragDrop in the dictionary.
See the entry for dragDrop in the dictionary. You can get the file paths
from there.
on dragDrop -- check for file paths
get the dragData["files"]
...
pass dragDrop
end dragDrop
On 3/12/19 10:46 AM, Bob Sneidar via use-livecode wrote:
On a Mac you could just make an Applescript call to
On a Mac you could just make an Applescript call to the Finder. Windows, I
don't know. There is probably a powershell call that will do it.
Bob S
> On Mar 8, 2019, at 06:46 , R.H. via use-livecode
> wrote:
>
> Desktop and IDE, mainly Windows 10 (could be any OS), LiveCode lastest
>
Desktop and IDE, mainly Windows 10 (could be any OS), LiveCode lastest
version.
Drag-and-Drop on Windows works as expected. But I have another request and
do not know how to handle it so far.
The OS should know which file a user has selected. Is there are a command
or Shell function to know
12 matches
Mail list logo