• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UI scripting: how to click 'OK' in Photo-Paint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI scripting: how to click 'OK' in Photo-Paint


  • Subject: Re: UI scripting: how to click 'OK' in Photo-Paint
  • From: Jim Witte <email@hidden>
  • Date: Tue, 19 Jul 2005 18:34:40 -0500

On Jul 18, 2005, at 12:49 PM, Glenn Sugden wrote:
    FWIW - I had the same problem trying to press the "OK" button in iTunes' (4.9) "Edit Smart Playlist" window...
    ...tried a billion different things....
    ...finally had to call a QuicKeys macro to do the dirty work for me. ;-)

  This seem *really* out of place for an *Apple* app (and one written using Carbon/Cocoa to boot).  Shouldn't Carbon/Cocoa just do this by default, or is that expecting too much from our fourth-generation languages and frameworks?

  For that matter, shouldn't I just be able to say something like

    create smart playlist named "this" with all properties {file type is apple lossless, play count is greater than 5, album is not "Death Metal", artist is in group "favorites", limited to 20 songs}

  Okay, maybe I'm stretching just a bit with the artist integration with AB, but the rest..  In a general grammar of something like:

create smart playlist named <string> with [any | all] properties {prop*}

prop :
[ file type is [mp3 | aiff | acc | protected acc | apple lossless | ogg] |
  file size is <size> [in [bytes | kilobytes | megabytes | gigabytes]] |
        // 'in clause defaults to kilobytes'
  play count [is | is greater than | is less than] <number> |
  last played is [ [ [over | less than] <number> [hours | days | weeks | months] ago] | <date> ] |
  [artist | album | genre | etc.. ] is [ <string> | in group <string> ] ]
]

is: [is | is not]

and the 's' character is optional where a number is 1 or 0..

PS.  Can scripting additions define there own grammars for commands with lex/yacc tables, or just work within the general syntax of AS (English dialect, which is now the only dialect)?

Jim
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: UI scripting: how to click 'OK' in Photo-Paint (From: Wim Melis <email@hidden>)
 >Re: UI scripting: how to click 'OK' in Photo-Paint (From: Glenn Sugden <email@hidden>)

  • Prev by Date: Re: Incrementing variables
  • Next by Date: Re: Defing a Path correctly
  • Previous by thread: Re: UI scripting: how to click 'OK' in Photo-Paint
  • Next by thread: PowerPoint outline level
  • Index(es):
    • Date
    • Thread