Search found 44 matches
- Sat Aug 05, 2023 10:51 am
- Forum: Mac OS
- Topic: Applescript execution error
- Replies: 15
- Views: 9574
Re: Applescript execution error
It's possible that the editor behaves differently to what normal Applescript does. However, Keyboard Maestro (KM) also runs the script without the volume name. In all three cases the actual source text is somehow transformed by some engine into interpretable code of some sort. In a different life, t...
- Fri Aug 04, 2023 7:44 pm
- Forum: Mac OS
- Topic: Applescript execution error
- Replies: 15
- Views: 9574
Re: Applescript execution error
stam: Now THAT was much more helpful and indeed supplies the answer: one has to specify the volume explicitly when in LC. So thank you for finding that! Further comments though: - if there was an errant parenthesis, it was probably a copying error because I carefully tested all cases I showed. If my...
- Fri Aug 04, 2023 2:17 pm
- Forum: Mac OS
- Topic: Applescript execution error
- Replies: 15
- Views: 9574
Re: Applescript execution error
stam, Please read : “I also know there are a few other ways to get the creation date, like the shell Setfile command or by looking in the detailed files . … … I know there are other ways but they are not what I wan t,” The question is: why “creation date” fails when other actions do work. So: HTH? n...
- Fri Aug 04, 2023 7:22 am
- Forum: Mac OS
- Topic: Applescript execution error
- Replies: 15
- Views: 9574
Applescript execution error
Hello, Getting the creation date of a file with AppleScript produces an execution error when run from the “do” command in LiveCode, but not in the AppleScript editor. Other Finder actions are fine. I also know there are a few other ways to get the creation date, like the shell Setfile command or by ...
- Sat Mar 21, 2020 3:47 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Script only Stacks
- Replies: 22
- Views: 16390
Re: Script only Stacks
Yes Thierry, that does it… Thanks very much for spotting that. Sorry for not having seen it! (I knew I'd done something terribly stupid). Strangely though: when reading it directly: start using stack "/Users/robertcailliau/Desktop/pms.txt" the first line (script "pms") is removed from the loaded sta...
- Fri Mar 20, 2020 4:58 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Script only Stacks
- Replies: 22
- Views: 16390
Re: Script only Stacks
Richard asks if the path is correct and the content. I'm not sure, but here is an archive (macOS) with the main stack and two files Archive.zip The main stack's button has this script: on mouseup if the optionkey is down then FromPath else ExplicitFromFile end if putmilliseconds end mouseup on FromP...
- Thu Mar 19, 2020 10:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Script only Stacks
- Replies: 22
- Views: 16390
Re: Script only Stacks
This is probably my ignorance, but when I try to use a script-only stack by start using stack "<path to file S>" I get execution error at line … (Chunk: cant find stack), char 1 Is opening a stack from a file a feature that is not in the community or Indy edition? I have Indy 9.5.1 Any thoughts?
- Sun Feb 16, 2020 11:58 am
- Forum: Mac OS
- Topic: setting the focus with keyboard property on a field
- Replies: 25
- Views: 18449
Re: setting the focus with keyboard property on a field
I just had exactly mvillion's question. I'm appalled at the number of answers that simply do not address the very clearly stated question: how does one set the focus with keyboard from a script ? For example, dunbarx obviously can't read that, but he is not the only one. This sort of well-meaning, f...
- Wed May 08, 2019 7:34 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: running in background
- Replies: 25
- Views: 15101
Re: running in background
Thanks for the suggestion TomBTG, but that was already done. There exists in fact an excellent gadget that does the required alarm functions, but the developers have not updated it for at least five years, the site seems dead and it will stop running when Apple abandons 32bit. Since we're on ergonom...
- Tue May 07, 2019 3:05 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: running in background
- Replies: 25
- Views: 15101
Re: running in background
Agreed, leave it as example; good idea.
When the program is finished I'll post it here too then. Plus its documentation.
When the program is finished I'll post it here too then. Plus its documentation.
- Tue May 07, 2019 7:26 am
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: running in background
- Replies: 25
- Views: 15101
Re: running in background
Hi Craig, Thanks. I think I made a stupid mistake: for testing I had somewhere …if the optionkey is up then send "…" to me in 1 second so that I could stop the clock by pressing option briefly. However, obviously if I hide the program by holding down the optionkey while clicking elsewhere, the sendi...
- Mon May 06, 2019 7:17 pm
- Forum: Getting Started with LiveCode - Experienced Developers
- Topic: running in background
- Replies: 25
- Views: 15101
running in background
Hi, I'm writing an "Alarm" program (desktop). It compares the current time with that of the next alarm and sounds an alarm when that time passes. This is done by sending a check message every second. So far so good. But problems start when the user is doing other things than staring at the alarm pro...
- Mon Feb 25, 2019 8:25 am
- Forum: Mac OS
- Topic: virtual desktop - spaces
- Replies: 22
- Views: 15290
Re: virtual desktop - spaces
I wasn't referring to any plan to have the app try to set or enforce its own rule. I meant the user setting up the window rule, which would be a simple rule telling the window manager to always place the app on all desktops. The app isn't aware or doing any talking, it just takes orders from the wi...
- Sun Feb 24, 2019 11:49 pm
- Forum: Mac OS
- Topic: virtual desktop - spaces
- Replies: 22
- Views: 15290
Re: virtual desktop - spaces
It appears that when you right+click an application's dock icon in MacOS you will see a contextual menu that allows you to assign the app to a specific desktop. You can also assign it to ALL desktops. This should do what you want, no? Yes, this is what I (he) wants for now, because it does solve th...
- Sun Feb 24, 2019 4:39 pm
- Forum: Mac OS
- Topic: virtual desktop - spaces
- Replies: 22
- Views: 15290
Re: virtual desktop - spaces
Hi wsamples: From what I understand there is a kernel, which in the case of Linux and macOS should be very similar if not identical, but then above that there are things that vary widely (or should I say "wildly" ). The window manager is probably among them, since on macOS it is called WindowServer....