New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Storing Applescript in text files

Post Reply New Thread Subscribe

Thread Tools

Member Since: Dec 28, 2012
Posts: 1
JonathonK is on a distinguished road

JonathonK is offline
Hi all,

I have an Excel file which writes applescript code. It basically creates an email with different attachments based on the settings in the excel file.

In my automator file, I call the action "Run Applescript". I would like the contents of the text file used as the applescript.

I've tried the command
file "Macintosh HD:Users:Jonoesktop:WLemail.text"

I get the error
Can't get the file "Macintosh HD:Users:Jonoesktop:WLemail.text"

Alternatively I can manually paste the contents of the text file into the Action "Run Applescript" but would like it all to be automatic.

Any help would be great.
QUOTE Thanks

Post Reply New Thread Subscribe

« I hosed my machine | FaceTime HD Camera Power Consumption? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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
Forum Jump

Similar Threads
Thread Starter
Last Post
Using Files From Folder For Applescript The Mule OS X - Operating System 1 11-01-2011 08:31 AM
Unix Executable files being saved as text Rotgut OS X - Operating System 5 03-11-2010 08:09 PM
Automator/Applescript/WHATEVER and Text Files Snipeye OS X - Apps and Games 0 12-27-2009 06:58 PM

All times are GMT -4. The time now is 12:41 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?