Giter Site home page Giter Site logo

MacOS not working about dlgs HOT 5 OPEN

gen2brain avatar gen2brain commented on May 18, 2024
MacOS not working

from dlgs.

Comments (5)

gen2brain avatar gen2brain commented on May 18, 2024

Hey, there was this pull request #3 , so not sure what is the correct fix here @leonjza .

from dlgs.

leonjza avatar leonjza commented on May 18, 2024

Hmm, problem with not "telling" a specific application is that when you are not in a logged in user context, there will be no dialog at all.

from dlgs.

gen2brain avatar gen2brain commented on May 18, 2024

@sooslaca why do you think it is because of "with icon" part, it works ok without it?
I don't use macOS so I don't really understand that well all those telling, there was this issue with color selector #1 where app was hanging until you "tell".

from dlgs.

sooslaca avatar sooslaca commented on May 18, 2024

hey, I'm not a MAC guru either, but here is the proof from Terminal app:

WITH ICON:

MACMACHINE:~ user$ osascript -e 'tell app "System Events" to display dialog "A stop dialog with only one button." buttons "OK" default button 1 with title "and a title" with icon stop'
28:150: execution error: System Events got an error: Can’t make application "System Events" into type number or string. (-1700)

(dialog is NOT displayed)

WITHOUT ICON:

MACMACHINE:~ user$ osascript -e 'tell app "System Events" to display dialog "A stop dialog with only one button." buttons "OK" default button 1 with title "and a title"'
button returned:OK

(after this dialog displays)

OS VERSION:

MACMACHINE:~ user$ uname -a
Darwin MACMACHINE 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64

from dlgs.

sooslaca avatar sooslaca commented on May 18, 2024

Also works in terminal if I leave out 'tell app "System Events"

MACMACHINE:~ user$ osascript -e 'display dialog "A stop dialog with only one button." buttons "OK" default button 1 with title "and a title" with icon stop'
button returned:OK

from dlgs.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.