Re: reading a file in an applescript.
Re: reading a file in an applescript.
- Subject: Re: reading a file in an applescript.
- From: Doug Meade <email@hidden>
- Date: Fri, 21 Mar 2008 16:57:01 -0400
- Thread-topic: reading a file in an applescript.
Title: Re: reading a file in an applescript.
Nope still fails to compile
Doug Meade
ExactTarget
Solutions Consultant
Office | 317-524-7235
Mobile | 317-508-7048
Email | email@hidden <mailto:email@hidden>
From: Michelle Steiner <email@hidden>
Reply-To: <email@hidden>
Date: Fri, 21 Mar 2008 13:10:42 -0700
To: Applescript Users <email@hidden>
Subject: Re: reading a file in an applescript.
On Mar 21, 2008, at 12:58 PM, Doug Meade wrote:
tell application "Finder"
set theScriptPath to (container of application file (path to me) as Unicode text)
end tell
set theTextFile to (theScriptPath & replyTemplateName)
set targetFile to theTextFile
set readHandle to (open for access targetFile)
set fileText to (read readHandle for (get eof readHandle))
close access readHandle
FileText
add "as alias" after "set targetFile to the TextFile"
-- Michelle
--
Iran is the new Iraq.
Iraq was the new Iran.
_______________________________________________
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
_______________________________________________
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