• 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:Permissions problems in Sierra
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:Permissions problems in Sierra


  • Subject: Re:Permissions problems in Sierra
  • From: Brian Christmas <email@hidden>
  • Date: Wed, 21 Dec 2016 23:47:26 +1100

G’day again.

This definitily does not work. ‘Do not have permission. I’ve set everything I can to full permissions, but can’t work out the correct permissions to add to do shell script “mkdir

I cannot work out how to open the correct MAN files.


tell application "TextEdit"
activate
do shell script "Sleep 1"
tell document 1
set pathToFile to ((path to desktop as alias) & "test" & ".rtfd" as text) # yearly_Desktop_Daily_Folder
save in pathToFile as alias
end tell
end tell


and just to save to the desktop, I’ve had to resort to….

tell application "TextEdit"
activate
do shell script "Sleep 1"
tell document 1
tell application "System Events" to tell process "TextEdit"
try
keystroke "s" using command down
do shell script "Sleep 1"
keystroke "2016-12-21 121212Z"
do shell script "Sleep .4"
# keystroke (ASCII character 9)
click pop up button 1 of group 2 of sheet 1 of window 1
do shell script "Sleep 1"
try
click menu item "Desktop" of menu 1 of pop up button 1 of group 2 of sheet 1 of window 1
end try
do shell script "Sleep 1"
click pop up button 1 of group 1 of group 1 of sheet 1 of window 1
do shell script "Sleep 1"
try
click menu item "Rich Text Document" of menu 1 of pop up button 1 of group 1 of sheet 1 of window 1
end try
do shell script "Sleep 1"
click button "Save" of sheet 1 of window 1
on error errmsg number errnum
tell application "System Events" to display dialog "Major Error: Code error in fileAndMailHandlingSubRoutineSaveAsrtf whilst preparing trying to save rtfd document with TextEdit. Error number " & errnum & " Error " & errmsg as text giving up after 20
end try
end tell
end tell
end tell


Trouble is, I’ve lots of different files to save. This latest update to Sierra has really thrown aspanner in three works.

Please, any thoughts

Regards

Santa

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Permissiond problems in Sierra
  • Next by Date: Cropping pdf in ACROBAT
  • Previous by thread: Permissiond problems in Sierra
  • Next by thread: Cropping pdf in ACROBAT
  • Index(es):
    • Date
    • Thread