• 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: Axel Luttgens <email@hidden>
  • Date: Wed, 21 Dec 2016 17:23:51 +0100

> Le 21 déc. 2016 à 13:47, Brian Christmas a écrit :
>
> 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….
>
> […]

Hello Brian,

If the target file doesn’t exist yet, it can’t be referred to through an AppleScript alias.
This one works fine under El Capitan:

	set newFile to POSIX file (POSIX path of (path to desktop folder) & "test.rtfd")
	tell application "TextEdit"
		tell document 1
			save in newFile
		end tell
	end tell

HTH,
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


References: 
 >Re:Permissions problems in Sierra (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re:Permissions problems in Sierra
  • Next by Date: Re: Permissions problems in Sierra
  • Previous by thread: Re:Permissions problems in Sierra
  • Next by thread: Re: Permissions problems in Sierra
  • Index(es):
    • Date
    • Thread