• 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: No permission to save file dialog in OS X Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No permission to save file dialog in OS X Lion


  • Subject: Re: No permission to save file dialog in OS X Lion
  • From: Brian Christmas <email@hidden>
  • Date: Fri, 29 Jul 2011 10:46:29 +1000


On 29/07/2011, at 5:05 AM, email@hidden wrote:

There is a new dialog box that pops up in OS X Lion when attempting to save a file in TextEdit, denying permission to save. is this a bug or an issue because of the new, automatic versioned-saving feature in OS X Lion?

tell application "Finder" to set basePathToNotesFile to basePathToContainer & "Notes.txt"
tell application "TextEdit"
with timeout of 10000 seconds
save the front document in basePathToNotesFile
end timeout
with timeout of 10000 seconds
activate
end timeout
with timeout of 10000 seconds
quit saving no
end timeout
end tell


G'day

For a start, TextEdit no longer allied files to be save under the .txt name extension.

You'll need to use something like this in the GUI

Regards

Santa

tell application "Finder" to set basePathToNotesFolder to (path to desktop) & "Mail Manager Folder" as text
set thePath to POSIX path of basePathToNotesFolder

tell application "TextEdit"
activate
if not (exists document 1) then
tell application "System Events" to tell process "TextEdit"
keystroke "n" using command down
keystroke "This is a test"
end tell
end if
tell application "System Events" to tell process "TextEdit"
delay 1
keystroke "s" using command down
delay 0.2
keystroke thePath --< will save as RTF or RTFD
keystroke return
delay 0.2
keystroke "a" using command down
delay 1
keystroke "Name of file"
--keystroke "d" using command down
delay 1
keystroke return
delay 1
end tell


quit saving no
end tell

 _______________________________________________
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: No permission to save file dialog in OS X Lion
      • From: Ron Hunsinger <email@hidden>
    • Re: No permission to save file dialog in OS X Lion
      • From: "Zavatone, Alex" <email@hidden>
    • Re: No permission to save file dialog in OS X Lion
      • From: Shane Stanley <email@hidden>
References: 
 >No permission to save file dialog in OS X Lion (From: email@hidden)

  • Prev by Date: Re: Preferred AS editing tools
  • Next by Date: Re: Preferred AS editing tools
  • Previous by thread: Re: No permission to save file dialog in OS X Lion
  • Next by thread: Re: No permission to save file dialog in OS X Lion
  • Index(es):
    • Date
    • Thread