Mac Help Forums


Reply
Thread Tools Display Modes

Newbie question

 
Member
kmancat's Avatar
Join Date: Dec 2005
Posts: 22
 
      30th December 2005
Hey, I'm pretty new to AppleScript. I need to know how create a TextEdit document with name "ProgramFile" at "Macintosh HD:Users:KmanCat"...I just can't figure out the syntax...
 
Reply With Quote
 
 
 
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      31st December 2005
Hi there and welcome !

TextEdit, unfortunately is not very AppleScript aware...

but here's one way you can do it, when TextEdit opens it normally 'opens' a blank document, quit textEdit then try this script...

tell application "TextEdit"
activate
save the front document in "Macintosh HD:Users:KmanCat:ProgramFile.txt"
end tell

If you want to do a lot of scripting then have a look at TextWrangler it's free and a lot more powerful than TextEdit, and it's AppleScriptable !

Happy New Year !

Ric
 
Reply With Quote
 
Member
kmancat's Avatar
Join Date: Dec 2005
Posts: 22
 
      31st December 2005
Thanks SO much. and happy new year.
 
Reply With Quote
 
Member
kmancat's Avatar
Join Date: Dec 2005
Posts: 22
 
      31st December 2005
Oh, and thanks for the text editor suggestion!
 
Reply With Quote
 
Ric Ric is offline
Senior Member
Ric's Avatar
Join Date: May 2004
Posts: 4,260
 
      2nd January 2006
No problem !

Happy New Year

regards

Ric
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac newbie question. J UK Macs 2 9th June 2009 05:35 PM
A newbie question christopherholmquist@gmail.com UK Macs 14 4th August 2007 05:35 AM
MAC Newbie question ravindra.rajaram@gmail.com Mac 1 13th November 2006 06:15 PM
Newbie Question(s) Dick Cheney Misc 1 2nd October 2006 08:28 AM
mac newbie question JP Mac 1 16th October 2003 07:19 PM


All times are GMT +1. The time now is 01:05 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
New book about Steve Jobs << take part in it!
Arjan (3 Hours Ago, 09:37 AM)

Help! Stupid computer is automatically logging me out
Elizaboo (14 Hours Ago, 10:41 PM)

URGENT Help. Crazy talk Mac!
Joeker (15 Hours Ago, 09:42 PM)

PDF Document
yura (1 Day Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (1 Day Ago, 06:36 AM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51