Re: saving mails...
Re: saving mails...
- Subject: Re: saving mails...
- From: Axel Lüttgens via AppleScript-Users <email@hidden>
- Date: Tue, 19 May 2020 17:19:30 +0200
- Ironport-phdr: 9a23:YVmkrByM17s4ltzXCy+O+j09IxM/srCxBDY+r6Qd2+wRIJqq85mqBkHD//Il1AaPAdyGrasc1KGG7+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fcbglVhDexe65+IAm0oAnetcQbjpZpJ7osxBfOvnZGYfldy3lyJVKUkRb858Ow84Bm/i9Npf8v9NNOXLvjcaggQrNWEDopM2Yu5M32rhbDVheA5mEdUmoNjBVFBRXO4QzgUZfwtiv6sfd92DWfMMbrQ704RSiu4qF2QxLulSwJNSM28HvPh8JwkK1Vrx2uqQFxzY7afo+aNvlwcKTGcNMGXGpBW9pdVyxdDo6+aYYEEuoPPfxfr4n4v1YDsRS/CheoBOz3zDFQmmP23bE10+s/FwHGxxErEtUUv3Xbstr1ML0eUeSozKnU0TXDYO1Z2THm6IXTaRAhovGNXbRufsrN00UgDB3Kg0yWpIf4MDybyv4DvHKH7+p8S+2vkWgnphlyrzWvx8ohhJfEip8Ix13Y6Sl0zps4KMCkREJnfNOpHpteuzyUOoZ3Q84vTWJltDokxrEatpO2eDYHxZooyhLDbfGMbouG4gr7WeuVPDt0nm9pdbGjixqo7ESs1O3xWtOq3FtFoSdIlMTHuGoX2BzJ8MeHT+Nw/kKm2TmSyQ/e8vpEIUUolarDLJ4h36IwmoITsUvdGi/2n137g6uLekgg5OSk8fnrb7Tlq5OGKoN4kA/zPaI2lsy+B+Q3LBQOUnCf9OihzrHv4E70TKlQgvErjKXUsIrWKdoUq6O2GwNV15ws6xe7DzeoytQYmnwHIUpfdxOIkYfpP0vCIPTlDfejn1Ssnylkx/bdPrD6GZXNLXjCkLH/crZh8UJT0xQ8wchF551IErEBPO7zWkjpudPCFh85Kwi0zPj8CNphzIMeWHqPArOAPKPPql+H+PgvI/KXaY8RuTb9MOQl5+X0gXAjgV8dZa2p0oUNZH+kGfRmJhbRXX25i8wcWTMDphI6QffhklyaTXtOfHuoRIo45yonE8SvFZ/HS8amh7nXjwmhGZgDT3BLDmeohWv0eIiCQL9YYTKfJolljyAYWrWnUKc61gCouRO8wbcxfbmcwTERqZ+2jIs93ObUjxxnrTE=
- Ironport-sdr: RXkuf6dyzn5rzLwCjmZJH9RIk0eTF8uQWKh/oH+kJle6pT4HDHMg2N4ir6nwoJr28mXVoiqz0h LEZkDy13oOi2lvkaUaJwQfgAxm6IeO3pkavNZ3ofV67ZjZ4HrF+4JwYAxaWBGQVqCuBRlYd82i VqW4bXkl0LW/HWv5aDrCPo36MBdjc/drmT3O18UAYeVvzKgUu18rJ2pf/ODJ+mVNoF0IogJ7Nv 4t/CuitCiPUQb5KZQzzRJ0fs6UHyFOGeIEk4i4+MZbbTXEpnSAMc+YvGW/18/6Wyr0KCyi0ENj vMk=
> Le 19 mai 2020 à 05:16, Jean-Christophe Helary a écrit :
>
> […]
>
> # Find email
> set shCMD to "mdfind -onlyin " & mailFolderPath & " 'kMDItemFSName == \"" &
> mID & ".emlx\"cd'"
> set emlFile to do shell script shCMD with administrator privileges
>
>
> Right now, the shCMD that the script gives me doesn't even work directly from
> Terminal, even with a sudo.
>
> If that's a sandboxing/security feature, I'm fine with that, I'll just use a
> different solution (also by Chris Stone), but I'd like to know that it's not
> my system that's not working…
Hello Jean-Christophe,
Here, under Mojave, Script Editor (or Terminal) needs to be given full disk
access for being able to return the file’s path. No need for "with
administrator privileges" (or sudo) then.
Axel
_______________________________________________
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