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

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]


  • Subject: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
  • From: Yvan KOENIG <email@hidden>
  • Date: Sun, 25 Dec 2016 11:42:42 +0100

Merry Christmas to all of you.

For testing I used :

set attachmentsFolder to "Volumes:folder1:folder2:"
set attachmentsFolder to (path to documents folder as text) & "4attachments:"
--set attachmentsFolder to (path to desktop as text) & "4attachments:"
--return attachmentsFolder
tell application "System Events"
exists folder attachmentsFolder
end tell
tell application "Mail"
set theMessages to the selection
set selectedMessages to theMessages
--try
repeat with theMessage in selectedMessages


repeat with theAttachment in theMessage's mail attachments
try
set originalName to name of theAttachment
set savePath to attachmentsFolder & originalName
tell me to set savePath to POSIX file (POSIX path of savePath)
save theAttachment in (savePath)
log "saved"
end try
end repeat


end repeat
--end try
end tell

It behaved flawlessly under 10.12.1
But under 10.12.2, every attempt to save an attachment issued :

--> error "Pour afficher ou modifier vos autorisations, sélectionnez l’élément dans le Finder, puis choisissez Fichier > Lire les informations." number -10000

On both systems, the permissions for 4attachments on the desktop are:
me read/write
admin read only
everyone read only
for 4attachments in Documents folder they were:
me read/write
admin read/write
everyone read only
After the tests I restored admin to read only.

It's the third oddity which I face when using AppleScript under 10.12.2 (as bad as 10.12.3)

Report # 29683268, Under 10.12.2 (and 10.12.3) AppleScript keystroke command fails
cf: http://macscripter.net/viewtopic.php?id=45395

Report #29753839 "under 10.12.2 (and 10.12.3) exporting iWork doc thru AppleScript is killed"
cf : http://macscripter.net/viewtopic.php?id=45401

Of course it would be useful to file reports of your own.

I will file one for the Mail problem.

Yvan KOENIG running Sierra 10.12.2 in French (VALLAURIS, France) dimanche 25 décembre 2016 11:42:32






 _______________________________________________
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

  • Follow-Ups:
    • Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
      • From: Yvan KOENIG <email@hidden>
References: 
 >Saving to desktop with TextEdit - El Capitan vs Sierra [2] (From: Axel Luttgens <email@hidden>)
 >Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2] (From: "email@hidden" <email@hidden>)

  • Prev by Date: Fwd: Cropping pdf in ACROBAT
  • Next by Date: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
  • Previous by thread: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
  • Next by thread: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
  • Index(es):
    • Date
    • Thread