Re: AppleScript-Users Digest, Vol 19, Issue 2
Re: AppleScript-Users Digest, Vol 19, Issue 2
- Subject: Re: AppleScript-Users Digest, Vol 19, Issue 2
- From: "S. J. Cunningham via AppleScript-Users" <email@hidden>
- Date: Fri, 21 Jan 2022 06:08:03 -0500
Sounds like you are talking about "selecting" a message, not "highlighting" it.
If you are trying to write a script to move a selected message or group of
messages, use something like:
tell application "Mail" to move the selection to destinationFolder
Steve Cunningham
On Jan 20, 2022, at 7:32 PM, Morris Bird via AppleScript-Users wrote:
> Hello AppleScripters,
>
> Is there a way to highlight a specific message in Mail?
>
> If I highlight a message manually (meaning, I click on the message myself
> then it indicates it is highlighted by turning blue), then I can run a script
> that - among other things - moves the message to a subfolder and it
> disappears from the INBOX.
>
> However, if the message is not highlighted already, I cannot get it to
> disappear from the INBOX. I can make a copy of the email in the subfolder
> (this happens whether I invoke "copy message" or "move message") but the
> message will remain in the INBOX.
>
> What I am hoping to figure out is how I can actually move the message so it
> disappears from the INBOX and only appears in the subfolder.
>
> I know I can do this if I manually highlight the message itself and then run
> the script. I don't know how to tell the script to highlight the message so I
> don't have to do this part manually.
>
> Any thoughts?
>
> All the best,
>
> Morris
>
> On Wed, Jan 19, 2022 at 12:00 PM <email@hidden>
> wrote:
> Send AppleScript-Users mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/applescript-users
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of AppleScript-Users digest..."
>
>
> Today's Topics:
>
> 1. Re: Remote apple events permissions (Takaaki Naganoya)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 20 Jan 2022 01:21:46 +0900
> From: Takaaki Naganoya <email@hidden>
> To: Peter Gort <email@hidden>, AppleScript-Users
> <email@hidden>
> Subject: Re: Remote apple events permissions
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=utf-8
>
> Hi Peter,
>
> I have a macOS 12 machine (m1mini.local) and a macOS 10.13 machine
> (MBA11J.local).
> Both pattern works for me.
>
>
> You'd better wrap the script with "using terms from" clause.
> Your script have to be compiled with local Finder's script dictionary not
> with remote Finder script dictionary.
>
>
> --macOS 12--> macOS 10.13 machine
> using terms from application "Finder"
> tell application "Finder" of machine "eppc://user:email@hidden"
> sleep
> end tell
> end using terms from
>
>
> --macOS 10.13--> macOS 12 machine
> using terms from application "Finder"
> tell application "Finder" of machine "eppc://user:email@hidden"
> sleep
> end tell
> end using terms from
>
>
>
> > 2022/01/15 16:48?Peter Gort via AppleScript-Users
> > <email@hidden>????:
> >
> > Hi All,
> >
> > I?m trying to tell Finder on remote machines to shut down. I have turned
> > on ?Remote Apple Events? in the Sharing section of System Preferences in
> > each targeted computer. The computer doing the telling is using this syntax
> >
> > tell application "Finder" of machine "eppc://username:password0@ipaddress"
> > shut down
> > end tell
> >
> > Which worked on one of my computers (which is running Monterey) and not on
> > another (which is running High Sierra). Despite having the preference
> > setting turned on for Administrator accounts, when I try to compile the
> > script that targets the problematic computer, it pops a dialog asking for
> > the username and password, so I put in the valid admin account username and
> > password, and Script Debugger returns ?Unable to authenticate user -927?.
> >
> > So I thought I had accidentally refused permission for the admin account on
> > that computer to receive Remote Apple Events for Finder (this is on the
> > High Sierra machine) , but I can?t figure out how to reset that permission.
> > I tried
> >
> > tccutil reset AppleEvents
> > But that returns
> >
> > tccutil: Failed to reset database
> >
> > So I tried the nuclear option of
> >
> > tccutil reset All
> > But that didn?t allow it either. I finally created another admin account
> > on the target computer and tried that one, and it worked. So somehow the
> > first admin account I used had permission for remote AppleEvents turned
> > off, and the nuclear option "tccutil reset All? didn?t reset that one.
> >
> > Anyone know how to reset that particular permission?
> >
>
> --
> Takaaki Naganoya
> email@hidden
> http://piyocast.com/as/
>
>
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> AppleScript-Users mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/applescript-users
>
>
> ------------------------------
>
> End of AppleScript-Users Digest, Vol 19, Issue 2
> ************************************************
>
>
> --
> Morris Bird
> Program Director
>
> BUILDING TOMORROW'S LEADERS
> email@hidden | 213-703-2343
> 515 S. Figueroa Street, 16th Floor
> Los Angeles, CA 90071
> www.btsla.org
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden