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
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.
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?
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?
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.
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?
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.
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?
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
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.
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.
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.
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.
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 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.
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.
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?
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?
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
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
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.
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.
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 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"
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.
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.
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.
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>
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 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
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.
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.
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.
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.
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
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.
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>
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 790 |
Nodes: | 20 (0 / 20) |
Uptime: | 39:40:55 |
Calls: | 12,115 |
Calls today: | 5 |
Files: | 5,294 |
D/L today: |
72 files (9,959K bytes) |
Messages: | 564,927 |