I'm trying to see if a PDF file is already opened. I won't know what app has it
open. Might be Reader, might be Acrobat, might be PDF Pro Office etc.
Bob S
> On May 17, 2019, at 18:26 , Mark Wieder via use-livecode
> wrote:
>
> Well, wait... what are you trying to accomplish?
> Are you tryi
Okay for some reason now it is working. Interesting. Anyway I am getting the
name of the window in Acrobat Reader returned in the result so I can now just
use "is in" to determine if ANY app has it open. Nice. Still takes about 6 to 8
seconds though. In Applescript it only takes less than a seco
Well, wait... what are you trying to accomplish?
Are you trying to see if a document file is open, or are you trying to
see if a program is running?
--
Mark Wieder
ahsoftw...@gmail.com
___
use-livecode mailing list
use-livecode@lists.runrev.com
Ple
Okay for those of you who care about this sort of thing:
This works to get the names of all open windows from the Process Viewer. It
works in the script editor
tell application "System Events"
get name of every window of every process
return the result
end tell
but when I attempt
I've tried all of them. -n -O one other. Apparently looking at the google
results, lsof is simply by nature DOG SLOW. I mean dying dog with 2 broken legs
and a clowder of cats scratching it's eyes out slow. I've checked Applescript
forums too. Apprently there is no damned good way to tell if a f
On 5/17/19 4:59 PM, Bob Sneidar via use-livecode wrote:
Okay I am using lsof in a shell command to see if the file open flag is set.
It's taking SIXTEEN SECONDS! Any ideas on a better way to check to see if a
file is open?
What options are you using for the lsof command?
--
Mark Wieder
ah
Okay I am using lsof in a shell command to see if the file open flag is set.
It's taking SIXTEEN SECONDS! Any ideas on a better way to check to see if a
file is open?
Bob S
> On May 17, 2019, at 16:55 , Bob Sneidar via use-livecode
> wrote:
>
> NVM That is not what is hanging it up.
>
>
NVM That is not what is hanging it up.
Bob S
> On May 17, 2019, at 16:49 , Bob Sneidar via use-livecode
> wrote:
>
> Hi all.
>
> When I use "there is a file tFileName" and there is no file, all goes pretty
> quickly. However if there IS a file it takes a great deal longer! Any idea
> wh