• AppleScript Question(s)

    From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, November 29, 2020 17:41:49
    From Newsgroup: comp.sys.mac.system

    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Any aid appreciated.

    -- Works in DevonTHINK:

    tell application id "DNtp"
    try
    tell selected text of think window 1
    set properties to {alignment:justified, font:"Optima Regular",
    size:20, color:{5000, 5000, 5000}, background:{65535, 65535, 65535}}
    end tell
    end try
    end tell

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Krzysztof Mitko@invalid@kmitko.at.list.dot.pl to comp.sys.mac.system on Monday, November 30, 2020 05:20:49
    From Newsgroup: comp.sys.mac.system

    gtr wrote:

    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Any aid appreciated.

    -- Works in DevonTHINK:

    tell application id "DNtp"
    try
    tell selected text of think window 1
    set properties to {alignment:justified, font:"Optima Regular",
    size:20, color:{5000, 5000, 5000}, background:{65535, 65535, 65535}}
    end tell
    end try
    end tell

    In Script Editor, open TextEdit's dictionary (File->Open dictionary). Every
    app can have different commands with different syntax. From what I can see TextEdit doesn't support "selected text", "background", and "alignment", but the rest works:

    tell application "TextEdit"
    tell text of front document
    set properties to {font:"Optima Regular", size:20, color:{5000, 5000,
    5000}}
    end tell
    end tell

    See also this example:

    tell application "TextEdit"
    set text of front document to "This is a test\nThis is a test"
    set font of text of front document to "Palatino"
    tell text of front document
    set font of word 4 of paragraph 1 to "Monaco"
    set color of paragraph 2 to {0,50000,0}
    set size of character 1 of word 2 of paragraph 1 to 30
    end tell
    end tell

    If you want to do it from the menu, do this:

    tell application "System Events" to tell process "TextEdit"
    click pop up button 1 of group 1 of front window
    click menu item "Optima" of menu 1 of pop up button 1 of group 1 of front
    window
    end tell

    If you don't know how to script UI, open Automator, create new workflow, click "Record" and do what you want to script; after you finished, you'll end up
    with "Watch me do" action. You can copy the events you need, paste them to Script Editor and clean them up.

    --
    Je suis Marxiste, tendance Groucho.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, November 29, 2020 23:16:25
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    gtr wrote:

    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing
    that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Any aid appreciated.

    -- Works in DevonTHINK:

    tell application id "DNtp"
    try
    tell selected text of think window 1
    set properties to {alignment:justified, font:"Optima Regular",
    size:20, color:{5000, 5000, 5000}, background:{65535, 65535, 65535}}
    end tell
    end try
    end tell

    In Script Editor, open TextEdit's dictionary (File->Open dictionary). Every app can have different commands with different syntax. From what I can see TextEdit doesn't support "selected text", "background", and "alignment", but the rest works:

    tell application "TextEdit"
    tell text of front document
    set properties to {font:"Optima Regular", size:20, color:{5000, 5000,
    5000}}
    end tell
    end tell

    See also this example:

    tell application "TextEdit"
    set text of front document to "This is a test\nThis is a test"
    set font of text of front document to "Palatino"
    tell text of front document
    set font of word 4 of paragraph 1 to "Monaco"
    set color of paragraph 2 to {0,50000,0}
    set size of character 1 of word 2 of paragraph 1 to 30
    end tell
    end tell

    If you want to do it from the menu, do this:

    tell application "System Events" to tell process "TextEdit"
    click pop up button 1 of group 1 of front window
    click menu item "Optima" of menu 1 of pop up button 1 of group 1 of front
    window
    end tell

    If you don't know how to script UI, open Automator, create new workflow, click
    "Record" and do what you want to script; after you finished, you'll end up with "Watch me do" action. You can copy the events you need, paste them to Script Editor and clean them up.

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Krzysztof Mitko@invalid@kmitko.at.list.dot.pl to comp.sys.mac.system on Monday, November 30, 2020 07:43:57
    From Newsgroup: comp.sys.mac.system

    gtr wrote:

    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    gtr wrote:

    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing
    that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Any aid appreciated.

    -- Works in DevonTHINK:

    tell application id "DNtp"
    try
    tell selected text of think window 1
    set properties to {alignment:justified, font:"Optima Regular",
    size:20, color:{5000, 5000, 5000}, background:{65535, 65535, 65535}}
    end tell
    end try
    end tell

    In Script Editor, open TextEdit's dictionary (File->Open dictionary). Every >> app can have different commands with different syntax. From what I can see >> TextEdit doesn't support "selected text", "background", and "alignment", but
    the rest works:

    tell application "TextEdit"
    tell text of front document
    set properties to {font:"Optima Regular", size:20, color:{5000, 5000,
    5000}}
    end tell
    end tell

    See also this example:

    tell application "TextEdit"
    set text of front document to "This is a test\nThis is a test"
    set font of text of front document to "Palatino"
    tell text of front document
    set font of word 4 of paragraph 1 to "Monaco"
    set color of paragraph 2 to {0,50000,0}
    set size of character 1 of word 2 of paragraph 1 to 30
    end tell
    end tell

    If you want to do it from the menu, do this:

    tell application "System Events" to tell process "TextEdit"
    click pop up button 1 of group 1 of front window
    click menu item "Optima" of menu 1 of pop up button 1 of group 1 of front
    window
    end tell

    If you don't know how to script UI, open Automator, create new workflow,
    click
    "Record" and do what you want to script; after you finished, you'll end up >> with "Watch me do" action. You can copy the events you need, paste them to >> Script Editor and clean them up.

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16

    --
    Je suis Marxiste, tendance Groucho.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Monday, November 30, 2020 13:28:10
    From Newsgroup: comp.sys.mac.system

    In message <rq2689$6gp$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    If you don't know how to script UI, open Automator, create new workflow, click
    "Record" and do what you want to script; after you finished, you'll end up >> with "Watch me do" action. You can copy the events you need, paste them to >> Script Editor and clean them up.

    [...]

    From your first example, Optima Regular, size 20 will do it. But I'm curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the "styles" button?

    Have you tried recording the actions in Automator?


    --
    "In order to avoid being called a flirt, she always yielded easily."
    Charles, Count Talleyrand
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Jolly Roger@jollyroger@pobox.com to comp.sys.mac.system on Monday, November 30, 2020 17:37:52
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30, gtr <xxx@yyy.zzz> wrote:
    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    User interface scripting (clicking things, etc) is *never* preferable
    to using AppleScript commands supported by the application. It should be
    done as a last resort, if at all.

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    TextEdit has built-in AppleScript commands that let you modify text:

    -- begin script
    tell application "TextEdit"
    activate
    make new document with properties {text:"XDXDXD"}
    set theDesktopPath to the path to the desktop folder as text
    tell front document
    set font to "Comic Sans MS"
    set size to 40
    set its color to {65535, 0, 0}
    end tell
    end tell
    -- end script

    <https://apple.stackexchange.com/questions/345861/applescript-to-perform-actions-to-text-in-new-textedit-document>

    You can view the AppleScript dictionary of any app by opening Script
    Editor and choosing File > Open Dictionary, then choosing the app in
    question.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Don't have that book, sorry.

    --
    E-mail sent to this address may be devoured by my ravenous SPAM filter.
    I often ignore posts from Google. Use a real news client instead.

    JR
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Alan Baker@notonyourlife@no.no.no.no to comp.sys.mac.system on Monday, November 30, 2020 12:56:25
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 5:28 a.m., Lewis wrote:
    In message <rq2689$6gp$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    If you don't know how to script UI, open Automator, create new workflow, click
    "Record" and do what you want to script; after you finished, you'll end up >>> with "Watch me do" action. You can copy the events you need, paste them to >>> Script Editor and clean them up.

    [...]

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Have you tried recording the actions in Automator?



    I took a look at it...

    ...it's terrible.
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Monday, November 30, 2020 22:42:25
    From Newsgroup: comp.sys.mac.system

    In message <rq3m9p$5gs$2@dont-email.me> Alan Baker <notonyourlife@no.no.no.no> wrote:
    On 2020-11-30 5:28 a.m., Lewis wrote:
    In message <rq2689$6gp$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    If you don't know how to script UI, open Automator, create new workflow, click
    "Record" and do what you want to script; after you finished, you'll end up >>>> with "Watch me do" action. You can copy the events you need, paste them to >>>> Script Editor and clean them up.

    [...]

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Have you tried recording the actions in Automator?



    I took a look at it...

    ...it's terrible.

    Perhaps, but it does give you the information you need to put into an AppleScript to select specific controls in specific windows.

    --
    Thanks to great leaders such as Ghengis Khan, Joan of Arc, and
    Socratic Method, the world is full of history.
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Monday, November 30, 2020 17:59:25
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 13:28:10 +0000, Lewis said:

    In message <rq2689$6gp$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    If you don't know how to script UI, open Automator, create new workflow, click
    "Record" and do what you want to script; after you finished, you'll end up >>> with "Watch me do" action. You can copy the events you need, paste them to >>> Script Editor and clean them up.

    [...]

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Have you tried recording the actions in Automator?

    I've only fumbled with Automator, but indeed did try it. I found I had
    a hard time figuring out which category of what I was attempting to
    engage something to do. With the Applescript, I at least had it working
    with one app.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Monday, November 30, 2020 18:04:24
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    gtr wrote:

    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    gtr wrote:

    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing >>>> that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Any aid appreciated.

    -- Works in DevonTHINK:

    tell application id "DNtp"
    try
    tell selected text of think window 1
    set properties to {alignment:justified, font:"Optima Regular",
    size:20, color:{5000, 5000, 5000}, background:{65535, 65535, 65535}}
    end tell
    end try
    end tell

    In Script Editor, open TextEdit's dictionary (File->Open dictionary). Every >>> app can have different commands with different syntax. From what I can see >>> TextEdit doesn't support "selected text", "background", and "alignment", but
    the rest works:

    tell application "TextEdit"
    tell text of front document
    set properties to {font:"Optima Regular", size:20, color:{5000, 5000,
    5000}}
    end tell
    end tell

    See also this example:

    tell application "TextEdit"
    set text of front document to "This is a test\nThis is a test"
    set font of text of front document to "Palatino"
    tell text of front document
    set font of word 4 of paragraph 1 to "Monaco"
    set color of paragraph 2 to {0,50000,0}
    set size of character 1 of word 2 of paragraph 1 to 30
    end tell
    end tell

    If you want to do it from the menu, do this:

    tell application "System Events" to tell process "TextEdit"
    click pop up button 1 of group 1 of front window
    click menu item "Optima" of menu 1 of pop up button 1 of group 1 of front
    window
    end tell

    If you don't know how to script UI, open Automator, create new workflow, >>> click
    "Record" and do what you want to script; after you finished, you'll end up >>> with "Watch me do" action. You can copy the events you need, paste them to >>> Script Editor and clean them up.

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window end tell

    Worked perfectly. Many thanks.

    See this videos on how I found out which code I need:

    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16


    Even better--you taught a man to fish!

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Monday, November 30, 2020 18:05:04
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 17:37:52 +0000, Jolly Roger said:

    On 2020-11-30, gtr <xxx@yyy.zzz> wrote:
    I've been hunting via google and other and can't answer my issue. I
    want to change the font in a program using ab Apple dropdown
    (pulldown?) that a few programs use. It looks like this:

    https://snipboard.io/F4j6Xs.jpg

    I can't seem to figure out how to trigger a style from the displayed
    menu. So I abandoned it when I saw a different approach that worked
    well enough for DevonTHINK (see below).

    User interface scripting (clicking things, etc) is *never* preferable
    to using AppleScript commands supported by the application. It should be
    done as a last resort, if at all.

    But this won't work in TextEdit, despite fiddling with the parms. If
    there's a way to avoid it all and use the styles, menu, great. Failing
    that--any aid on making the properties configuration approach (below)
    work with TextEdit would do.

    TextEdit has built-in AppleScript commands that let you modify text:

    -- begin script
    tell application "TextEdit"
    activate
    make new document with properties {text:"XDXDXD"}
    set theDesktopPath to the path to the desktop folder as text
    tell front document
    set font to "Comic Sans MS"
    set size to 40
    set its color to {65535, 0, 0}
    end tell
    end tell
    -- end script

    <https://apple.stackexchange.com/questions/345861/applescript-to-perform-actions-to-text-in-new-textedit-document>


    You can view the AppleScript dictionary of any app by opening Script
    Editor and choosing File > Open Dictionary, then choosing the app in question.

    And if you know where *either* answers might be in AppleScripts for
    Dummies, that would be swell too.

    Don't have that book, sorry.

    That's helpful, thanks.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Monday, November 30, 2020 18:05:50
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 22:42:25 +0000, Lewis said:

    In message <rq3m9p$5gs$2@dont-email.me> Alan Baker <notonyourlife@no.no.no.no> wrote:
    On 2020-11-30 5:28 a.m., Lewis wrote:
    In message <rq2689$6gp$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 05:20:49 +0000, Krzysztof Mitko said:

    If you don't know how to script UI, open Automator, create new workflow, click
    "Record" and do what you want to script; after you finished, you'll end up
    with "Watch me do" action. You can copy the events you need, paste them to
    Script Editor and clean them up.

    [...]

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Have you tried recording the actions in Automator?



    I took a look at it...

    ...it's terrible.

    Perhaps, but it does give you the information you need to put into an AppleScript to select specific controls in specific windows.

    I just tried the record option, and it looks like something I can use
    in myriad operations--I just want the applescript part of it.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Jolly Roger@jollyroger@pobox.com to comp.sys.mac.system on Tuesday, December 01, 2020 17:22:54
    From Newsgroup: comp.sys.mac.system

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But
    I'm curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >> end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a
    *last resort*. TextEdit has built-in AppleScript commands for adjusting
    text properties.

    With user interface scripting, if the user happens to move the mouse,
    open an app or document, or anything else while the script is running,
    the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    --
    E-mail sent to this address may be devoured by my ravenous SPAM filter.
    I often ignore posts from Google. Use a real news client instead.

    JR
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Tuesday, December 01, 2020 16:30:46
    From Newsgroup: comp.sys.mac.system

    On 2020-12-01 17:22:54 +0000, Jolly Roger said:

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But
    I'm curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>> end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a
    *last resort*. TextEdit has built-in AppleScript commands for adjusting
    text properties.

    With user interface scripting, if the user happens to move the mouse,
    open an app or document, or anything else while the script is running,
    the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    Good to note, if only in the abstract. I say abstract because it is
    over almost as fast as I issue the keystroke to summon it; I'll hardly
    have the time to interfere--though I have in longer scripts.

    In this particular case, in selecting a "style", it not only comes with
    font, size and color specifics for the text, but also tab settings that
    are associated with the style. I don't really care about thelm, but if
    I did, it would then be encombent on me to provide that data too.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Wednesday, December 02, 2020 02:00:27
    From Newsgroup: comp.sys.mac.system

    In message <rq6n7m$f5o$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-01 17:22:54 +0000, Jolly Roger said:

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But
    I'm curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the >>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>>> end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a
    *last resort*. TextEdit has built-in AppleScript commands for adjusting
    text properties.

    With user interface scripting, if the user happens to move the mouse,
    open an app or document, or anything else while the script is running,
    the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    Good to note, if only in the abstract. I say abstract because it is
    over almost as fast as I issue the keystroke to summon it; I'll hardly
    have the time to interfere--though I have in longer scripts.

    In the case above, System event is talking to TextEdit, so the clicks
    will go only to the text edit controls. You are not clicking on random
    things in the UI, so this is safe and will work in the background even,
    and I think even if TextEdit is hidden or on a different space.

    If you use System Events to click a location on screen, that's were
    things can get dicey, though it's generally fine if you are paying
    attention.

    AppleScript is surprisingly robust.

    --
    'You know me,' said Rincewind. 'Just when I'm getting a grip on
    something Fate comes along and jumps on my fingers.'
    --Interesting Times
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Tuesday, December 01, 2020 18:57:08
    From Newsgroup: comp.sys.mac.system

    On 2020-12-02 02:00:27 +0000, Lewis said:

    In message <rq6n7m$f5o$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-01 17:22:54 +0000, Jolly Roger said:

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But
    I'm curious about the "system events" example. It pops up the font >>>>>> selector, seemingly the second button. Is there no way to access the >>>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>>>> end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a
    *last resort*. TextEdit has built-in AppleScript commands for adjusting >>> text properties.

    With user interface scripting, if the user happens to move the mouse,
    open an app or document, or anything else while the script is running,
    the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    Good to note, if only in the abstract. I say abstract because it is
    over almost as fast as I issue the keystroke to summon it; I'll hardly
    have the time to interfere--though I have in longer scripts.

    In the case above, System event is talking to TextEdit, so the clicks
    will go only to the text edit controls. You are not clicking on random
    things in the UI, so this is safe and will work in the background even,
    and I think even if TextEdit is hidden or on a different space.

    If you use System Events to click a location on screen, that's were
    things can get dicey, though it's generally fine if you are paying
    attention.

    I had already written macros to do that and they had a high likelihood
    of working correctly--which isn't good enough.

    AppleScript is surprisingly robust.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Alan Baker@notonyourlife@no.no.no.no to comp.sys.mac.system on Tuesday, December 01, 2020 21:35:20
    From Newsgroup: comp.sys.mac.system

    On 2020-12-01 6:57 p.m., gtr wrote:
    On 2020-12-02 02:00:27 +0000, Lewis said:

    In message <rq6n7m$f5o$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-01 17:22:54 +0000, Jolly Roger said:

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it.  But >>>>>>> I'm curious about the "system events" example.  It pops up the font >>>>>>> selector, seemingly the second button. Is there no way to access the >>>>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
        click menu button 1 of group 1 of front window
        click menu item 9 of menu 1 of menu button 1 of group 1 of >>>>>> front window
    end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a
    *last resort*.  TextEdit has built-in AppleScript commands for
    adjusting
    text properties.

    With user interface scripting, if the user happens to move the mouse,
    open an app or document, or anything else while the script is running, >>>> the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    Good to note, if only in the abstract. I say abstract because it is
    over almost as fast as I issue the keystroke to summon it; I'll hardly
    have the time to interfere--though I have in longer scripts.

    In the case above, System event is talking to TextEdit, so the clicks
    will go only to the text edit controls. You are not clicking on random
    things in the UI, so this is safe and will work in the background even,
    and I think even if TextEdit is hidden or on a different space.

    If you use System Events to click a location on screen, that's were
    things can get dicey, though it's generally fine if you are paying
    attention.

    I had already written macros to do that and they had a high likelihood
    of working correctly--which isn't good enough.

    So why use TextEdit?
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Tuesday, December 01, 2020 22:00:35
    From Newsgroup: comp.sys.mac.system

    On 2020-12-02 05:35:20 +0000, Alan Baker said:

    On 2020-12-01 6:57 p.m., gtr wrote:
    On 2020-12-02 02:00:27 +0000, Lewis said:

    In message <rq6n7m$f5o$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-01 17:22:54 +0000, Jolly Roger said:

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it.  But >>>>>>>> I'm curious about the "system events" example.  It pops up the font >>>>>>>> selector, seemingly the second button. Is there no way to access the >>>>>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
        click menu button 1 of group 1 of front window
        click menu item 9 of menu 1 of menu button 1 of group 1 of front window
    end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a >>>>> *last resort*.  TextEdit has built-in AppleScript commands for adjusting >>>>> text properties.

    With user interface scripting, if the user happens to move the mouse, >>>>> open an app or document, or anything else while the script is running, >>>>> the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    Good to note, if only in the abstract. I say abstract because it is
    over almost as fast as I issue the keystroke to summon it; I'll hardly >>>> have the time to interfere--though I have in longer scripts.

    In the case above, System event is talking to TextEdit, so the clicks
    will go only to the text edit controls. You are not clicking on random
    things in the UI, so this is safe and will work in the background even,
    and I think even if TextEdit is hidden or on a different space.

    If you use System Events to click a location on screen, that's were
    things can get dicey, though it's generally fine if you are paying
    attention.

    I had already written macros to do that and they had a high likelihood
    of working correctly--which isn't good enough.

    So why use TextEdit?

    It's an interim location between here and there. Sometimes, It's nice
    to actually *read* it, thus the need to format it for reading.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Tuesday, December 01, 2020 22:01:29
    From Newsgroup: comp.sys.mac.system

    On 2020-12-02 05:35:20 +0000, Alan Baker said:

    On 2020-12-01 6:57 p.m., gtr wrote:
    On 2020-12-02 02:00:27 +0000, Lewis said:

    In message <rq6n7m$f5o$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-01 17:22:54 +0000, Jolly Roger said:

    On 2020-12-01, gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:
    gtr wrote:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it.  But >>>>>>>> I'm curious about the "system events" example.  It pops up the font >>>>>>>> selector, seemingly the second button. Is there no way to access the >>>>>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
        click menu button 1 of group 1 of front window
        click menu item 9 of menu 1 of menu button 1 of group 1 of front window
    end tell

    Worked perfectly. Many thanks.

    Yes, but it's a bad idea. Again, user interface scripting should be a >>>>> *last resort*.  TextEdit has built-in AppleScript commands for adjusting >>>>> text properties.

    With user interface scripting, if the user happens to move the mouse, >>>>> open an app or document, or anything else while the script is running, >>>>> the script can click the wrong thing or modify the wrong data. That
    cannot happen when you use built-in AppleScript commands instead.

    Good to note, if only in the abstract. I say abstract because it is
    over almost as fast as I issue the keystroke to summon it; I'll hardly >>>> have the time to interfere--though I have in longer scripts.

    In the case above, System event is talking to TextEdit, so the clicks
    will go only to the text edit controls. You are not clicking on random
    things in the UI, so this is safe and will work in the background even,
    and I think even if TextEdit is hidden or on a different space.

    If you use System Events to click a location on screen, that's were
    things can get dicey, though it's generally fine if you are paying
    attention.

    I had already written macros to do that and they had a high likelihood
    of working correctly--which isn't good enough.

    So why use TextEdit?

    The "macros with a high likelihood" weren't written for TextEdit, by the way.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Saturday, December 05, 2020 11:04:06
    From Newsgroup: comp.sys.mac.system

    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16


    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    -- Gerryt

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Krzysztof Mitko@invalid@kmitko.at.list.dot.pl to comp.sys.mac.system on Saturday, December 05, 2020 19:31:27
    From Newsgroup: comp.sys.mac.system

    gtr wrote:

    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >> end tell

    See this videos on how I found out which code I need:



    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16



    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    -- Gerryt

    I don't use iCloud integration in Finder, instead I share files through web interface - you have the "Share" icon next to mail icon (I had to turn off content blockers for icloud.com to see it). Then click "Copy Link", select the access options and click "Share":

    <https://imgur.com/3DbQgyE>
    <https://imgur.com/CmB4iJS>

    If you use iCloud integration in Finder, it should be under File->Share menu, the access options should be the same.

    --
    Chemical engineers do it in packed beds.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Sunday, December 06, 2020 00:21:16
    From Newsgroup: comp.sys.mac.system

    In message <rqglj5$fi8$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >> end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16


    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    Put file in iCloud Drive.
    Long tap on the file and tap Share
    Tap "Share File in iCloud"
    tap "Copy Link"


    --
    'In the Fyres of Struggle let us bake New Men, who Will Notte heed
    the old Lies.'
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Saturday, December 05, 2020 22:23:29
    From Newsgroup: comp.sys.mac.system

    On 2020-12-05 19:31:27 +0000, Krzysztof Mitko said:

    gtr wrote:

    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>> end tell

    See this videos on how I found out which code I need:



    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16




    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    -- Gerryt

    I don't use iCloud integration in Finder, instead I share files through web interface - you have the "Share" icon next to mail icon (I had to turn off content blockers for icloud.com to see it). Then click "Copy Link", select the
    access options and click "Share":

    <https://imgur.com/3DbQgyE>
    <https://imgur.com/CmB4iJS>

    If you use iCloud integration in Finder, it should be under File->Share menu, the access options should be the same.

    Thanks.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Saturday, December 05, 2020 22:24:51
    From Newsgroup: comp.sys.mac.system

    On 2020-12-06 00:21:16 +0000, Lewis said:

    In message <rqglj5$fi8$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>> end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16



    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    Put file in iCloud Drive.
    Long tap on the file and tap Share
    Tap "Share File in iCloud"
    tap "Copy Link"

    Thanks.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, December 06, 2020 09:44:54
    From Newsgroup: comp.sys.mac.system

    On 2020-12-06 00:21:16 +0000, Lewis said:

    In message <rqglj5$fi8$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm
    curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the
    "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>> end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16



    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    Put file in iCloud Drive.
    Long tap on the file and tap Share
    Tap "Share File in iCloud"
    tap "Copy Link"

    From both iCloud in a browser and iCloud Drive on my Mac, a long click
    does nothing. On the Mac, a right click gets many options. None are
    "share file in iCloud".

    In the browser, if I select the file, there is an option at the top of
    the screen display. Hovering displays "share file". Dramatically
    different from your instructions. I'm on Catalina 10.15.7.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, December 06, 2020 09:55:20
    From Newsgroup: comp.sys.mac.system

    On 2020-12-05 19:31:27 +0000, Krzysztof Mitko said:

    See this videos on how I found out which code I need:

    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16


    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    -- Gerry

    I don't use iCloud integration in Finder, instead I share files through web interface - you have the "Share" icon next to mail icon (I had to turn off content blockers for icloud.com to see it). Then click "Copy Link", select the
    access options and click "Share":

    <https://imgur.com/3DbQgyE>
    <https://imgur.com/CmB4iJS>

    If you use iCloud integration in Finder, it should be under File->Share menu, the access options should be the same.

    I find no file-share menu in iCloud on Finder. And the description you
    have of the iCloud sharing doesn't quite match mine either, but it
    works. Instead of the link bringing up the video, though. It brings up
    the iCloud folder in which it is located. I'm not sure how it would
    work if I gave it to a user other than myself, but I'll find out.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Jolly Roger@jollyroger@pobox.com to comp.sys.mac.system on Sunday, December 06, 2020 18:39:01
    From Newsgroup: comp.sys.mac.system

    On 2020-12-06, gtr <xxx@yyy.zzz> wrote:
    On 2020-12-05 19:31:27 +0000, Krzysztof Mitko said:

    See this videos on how I found out which code I need:

    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16

    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    I don't use iCloud integration in Finder, instead I share files through web >> interface - you have the "Share" icon next to mail icon (I had to turn off >> content blockers for icloud.com to see it). Then click "Copy Link", select the
    access options and click "Share":

    <https://imgur.com/3DbQgyE>
    <https://imgur.com/CmB4iJS>

    If you use iCloud integration in Finder, it should be under File->Share menu,
    the access options should be the same.

    I find no file-share menu in iCloud on Finder.

    There is a share icon in the toolbar at the top of the window.
    Alternatively, you can right-click a folder and choose Share > Add
    People to copy the link that way instead.

    And the description you have of the iCloud sharing doesn't quite match
    mine either, but it works. Instead of the link bringing up the video,
    though. It brings up the iCloud folder in which it is located. I'm not
    sure how it would work if I gave it to a user other than myself, but
    I'll find out.

    Here's what Apple says about it:
    <https://support.apple.com/HT210910#macos>

    --
    E-mail sent to this address may be devoured by my ravenous SPAM filter.
    I often ignore posts from Google. Use a real news client instead.

    JR
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, December 06, 2020 12:18:25
    From Newsgroup: comp.sys.mac.system

    On 2020-12-06 18:39:01 +0000, Jolly Roger said:

    On 2020-12-06, gtr <xxx@yyy.zzz> wrote:
    On 2020-12-05 19:31:27 +0000, Krzysztof Mitko said:

    See this videos on how I found out which code I need:

    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16


    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    I don't use iCloud integration in Finder, instead I share files through web >>> interface - you have the "Share" icon next to mail icon (I had to turn off >>> content blockers for icloud.com to see it). Then click "Copy Link", select the
    access options and click "Share":

    <https://imgur.com/3DbQgyE>
    <https://imgur.com/CmB4iJS>

    If you use iCloud integration in Finder, it should be under File->Share menu,
    the access options should be the same.

    I find no file-share menu in iCloud on Finder.

    There is a share icon in the toolbar at the top of the window.
    Alternatively, you can right-click a folder and choose Share > Add
    People to copy the link that way instead.

    I don't have that icon, but having added it I find the same thing I get
    when I right click it. Adding a person for distribution isn't quite the
    sam as produceing a link that I can then send, store, or paste
    somewhere else. I thought that sounded much handier.

    And the description you have of the iCloud sharing doesn't quite match
    mine either, but it works. Instead of the link bringing up the video,
    though. It brings up the iCloud folder in which it is located. I'm not
    sure how it would work if I gave it to a user other than myself, but
    I'll find out.

    I have since sent that link to my wife an she got it link, the video
    alone, and it worked great. It does return her to her own iCloud folder
    after viewing the video. I'm not sure how that would work, then, for non-iCloud/Apple users. I'll find out.

    Here's what Apple says about it:
    <https://support.apple.com/HT210910#macos>

    This seems to be about sharing a folder. Again, the thing I thought
    useful was being able to produce a link to a document in my iCloud
    folder, so someone could access that document alone.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Sunday, December 06, 2020 21:13:19
    From Newsgroup: comp.sys.mac.system

    In message <rqj5am$332$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-06 00:21:16 +0000, Lewis said:

    In message <rqglj5$fi8$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm >>>>> curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the >>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>>> end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16



    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    Put file in iCloud Drive.
    Long tap on the file and tap Share
    Tap "Share File in iCloud"
    tap "Copy Link"

    From both iCloud in a browser and iCloud Drive on my Mac, a long click
    does nothing. On the Mac, a right click gets many options. None are
    "share file in iCloud".

    Sorry, those directions were for iOS.

    On the Mac a Right-click has a "Share" menu. If the file is in iCloud,
    the top option will be "Share File"

    --
    I love as only I can, with all my heart
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, December 06, 2020 19:09:32
    From Newsgroup: comp.sys.mac.system

    On 2020-12-06 21:13:19 +0000, Lewis said:

    In message <rqj5am$332$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-06 00:21:16 +0000, Lewis said:

    In message <rqglj5$fi8$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-11-30 07:43:57 +0000, Krzysztof Mitko said:

    Great stuff, thanks!

    From your first example, Optima Regular, size 20 will do it. But I'm >>>>>> curious about the "system events" example. It pops up the font
    selector, seemingly the second button. Is there no way to access the >>>>>> "styles" button?

    Yes, with following code:

    tell application "System Events" to tell process "TextEdit"
    click menu button 1 of group 1 of front window
    click menu item 9 of menu 1 of menu button 1 of group 1 of front window >>>>> end tell

    See this videos on how I found out which code I need:


    https://www.icloud.com/iclouddrive/0XBbJ59J2taZf-2ZVCR-Ieu2A#Screen_Recording_2020-11-30_at_08.37.16




    Say, how the heck did you produce this link/path to the video? I've
    tried a couple of options, neither work.

    Put file in iCloud Drive.
    Long tap on the file and tap Share
    Tap "Share File in iCloud"
    tap "Copy Link"

    From both iCloud in a browser and iCloud Drive on my Mac, a long click
    does nothing. On the Mac, a right click gets many options. None are
    "share file in iCloud".

    Sorry, those directions were for iOS.

    On the Mac a Right-click has a "Share" menu. If the file is in iCloud,
    the top option will be "Share File"

    The is a share item about 3/4's of the way down the list of right-click options. It has sub-options but they do not include share file:

    https://snipboard.io/ScCe5O.jpg

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Monday, December 07, 2020 04:57:05
    From Newsgroup: comp.sys.mac.system

    In message <rqk6dc$luk$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    The is a share item about 3/4's of the way down the list of right-click options. It has sub-options but they do not include share file:

    https://snipboard.io/ScCe5O.jpg

    Share file only shows up for files that are in iCloud Drive.

    --
    "There's a light that shines on everything & everyone. And it shines
    so bright - brighter even than the sun". That's what Minnie
    thinks as she walks to meet her brother, who is nearly two years
    older on a Saturday night. He's DJ-ing at some do on the edge of
    town on the night that Minnie Timperley died.
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Sunday, December 06, 2020 22:09:31
    From Newsgroup: comp.sys.mac.system

    On 2020-12-07 04:57:05 +0000, Lewis said:

    In message <rqk6dc$luk$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    The is a share item about 3/4's of the way down the list of right-click
    options. It has sub-options but they do not include share file:

    https://snipboard.io/ScCe5O.jpg

    Share file only shows up for files that are in iCloud Drive.

    It is in iCloud Drive. I selected it while viewing that drive via the Finder.

    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Lewis@g.kreme@kreme.dont-email.me to comp.sys.mac.system on Monday, December 07, 2020 06:54:43
    From Newsgroup: comp.sys.mac.system

    In message <rqkgur$afv$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    On 2020-12-07 04:57:05 +0000, Lewis said:

    In message <rqk6dc$luk$1@dont-email.me> gtr <xxx@yyy.zzz> wrote:
    The is a share item about 3/4's of the way down the list of right-click
    options. It has sub-options but they do not include share file:

    https://snipboard.io/ScCe5O.jpg

    Share file only shows up for files that are in iCloud Drive.

    It is in iCloud Drive. I selected it while viewing that drive via the Finder.

    Don't know what to tell you then, it is on my systems.

    --
    "640K ought to be enough RAM for anybody." - Bill Gates, 1981
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Jolly Roger@jollyroger@pobox.com to comp.sys.mac.system on Monday, December 07, 2020 17:16:45
    From Newsgroup: comp.sys.mac.system

    On 2020-12-06, gtr <xxx@yyy.zzz> wrote:
    On 2020-12-06 18:39:01 +0000, Jolly Roger said:
    On 2020-12-06, gtr <xxx@yyy.zzz> wrote:

    I find no file-share menu in iCloud on Finder.

    There is a share icon in the toolbar at the top of the window.
    Alternatively, you can right-click a folder and choose Share > Add
    People to copy the link that way instead.

    I don't have that icon, but having added it I find the same thing I
    get when I right click it. Adding a person for distribution isn't
    quite the sam as produceing a link that I can then send, store, or
    paste somewhere else. I thought that sounded much handier.

    Come on, man. If you had actually tried it, you'd know that choosing
    Share > Add People gives you that link. Please pay attention:

    <https://imgur.com/FaJMiBX>

    Here's what Apple says about it:
    <https://support.apple.com/HT210910#macos>

    This seems to be about sharing a folder. Again, the thing I thought
    useful was being able to produce a link to a document in my iCloud
    folder, so someone could access that document alone.

    Meh. This works. Use it.

    --
    E-mail sent to this address may be devoured by my ravenous SPAM filter.
    I often ignore posts from Google. Use a real news client instead.

    JR
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From Jolly Roger@jollyroger@pobox.com to comp.sys.mac.system on Monday, December 07, 2020 17:24:16
    From Newsgroup: comp.sys.mac.system

    On 2020-12-07, gtr <xxx@yyy.zzz> wrote:
    On 2020-12-06 21:13:19 +0000, Lewis said:

    On the Mac a Right-click has a "Share" menu. If the file is in
    iCloud, the top option will be "Share File"

    The is a share item about 3/4's of the way down the list of
    right-click options. It has sub-options but they do not include share
    file:

    https://snipboard.io/ScCe5O.jpg

    My god...

    For hopefully the last time, choose Share > Add People > Copy Link, and
    follow the prompts.

    <https://support.apple.com/guide/icloud/share-files-and-folders-mm708256356b/icloud>

    --
    E-mail sent to this address may be devoured by my ravenous SPAM filter.
    I often ignore posts from Google. Use a real news client instead.

    JR
    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Monday, December 07, 2020 10:14:59
    From Newsgroup: comp.sys.mac.system

    On 2020-12-07 17:16:45 +0000, Jolly Roger said:

    On 2020-12-06, gtr <xxx@yyy.zzz> wrote:
    On 2020-12-06 18:39:01 +0000, Jolly Roger said:
    On 2020-12-06, gtr <xxx@yyy.zzz> wrote:

    I find no file-share menu in iCloud on Finder.

    There is a share icon in the toolbar at the top of the window.
    Alternatively, you can right-click a folder and choose Share > Add
    People to copy the link that way instead.

    I don't have that icon, but having added it I find the same thing I
    get when I right click it. Adding a person for distribution isn't
    quite the sam as produceing a link that I can then send, store, or
    paste somewhere else. I thought that sounded much handier.

    Come on, man. If you had actually tried it, you'd know that choosing
    Share > Add People gives you that link. Please pay attention:

    <https://imgur.com/FaJMiBX>

    I am, as always, paying attention. From the discussion in the thread, I thought I could simply squeeze a link out of it, rather than pretend
    I'm sending it to someone and then snatching the link and discarding
    the send. That's a perfectly viable set of additional tasks; but I
    didn't yet grasp the need for a circuitous route.

    Here's what Apple says about it:
    <https://support.apple.com/HT210910#macos>

    This seems to be about sharing a folder. Again, the thing I thought
    useful was being able to produce a link to a document in my iCloud
    folder, so someone could access that document alone.

    Meh. This works. Use it.


    --- Synchronet 3.18b-Win32 NewsLink 1.113
  • From gtr@xxx@yyy.zzz to comp.sys.mac.system on Monday, December 07, 2020 10:16:24
    From Newsgroup: comp.sys.mac.system

    On 2020-12-07 17:24:16 +0000, Jolly Roger said:

    On 2020-12-07, gtr <xxx@yyy.zzz> wrote:
    On 2020-12-06 21:13:19 +0000, Lewis said:

    On the Mac a Right-click has a "Share" menu. If the file is in
    iCloud, the top option will be "Share File"

    The is a share item about 3/4's of the way down the list of
    right-click options. It has sub-options but they do not include share
    file:

    https://snipboard.io/ScCe5O.jpg

    My god...

    For hopefully the last time, choose Share > Add People > Copy Link, and follow the prompts.

    <https://support.apple.com/guide/icloud/share-files-and-folders-mm708256356b/icloud>


    That would be the second time from you. Again my god for the second
    time, I didn't realize I had to pretend to send it to a person in order
    to get a universal link. Understood.

    --- Synchronet 3.18b-Win32 NewsLink 1.113