Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Applescript help

Applescript help
Thread Tools
Dedicated MacNNer
Join Date: Oct 2002
Location: the end of the world
Status: Offline
Reply With Quote
Sep 1, 2003, 11:11 PM
 
I've just read the AppleScript Language Reference Guide hoping to get a start in scripting - but my Instant Gratification Module keeps bouncing in the dock...

I want to be able to select a file in the Finder, press FKey and the Script should send it to Entourage. Any help to be had here?

Quickeys is on to help with the key binding, but I could not find any route to say perform this command on the *selected* file.
     
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Sep 2, 2003, 02:59 AM
 
try this:

Code:
tell application "Finder" set selectedFile to get selection end tell tell application "Microsoft Entourage" set newWindow to make new draft window at front make new attachment at front of newWindow with properties {file:(selectedFile as alias)} end tell
     
Dedicated MacNNer
Join Date: Oct 2002
Location: the end of the world
Status: Offline
Reply With Quote
Sep 2, 2003, 03:16 PM
 
Originally posted by Diggory Laycock:
try this:

Code:
tell application "Finder" set selectedFile to get selection end tell tell application "Microsoft Entourage" set newWindow to make new draft window at front make new attachment at front of newWindow with properties {file:(selectedFile as alias)} end tell
Wonderful! Thanks. It works.
     
   
Thread Tools
Forum Links
Forum 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 On
Top
Privacy Policy
All times are GMT -5. The time now is 10:21 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2