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 > Developer Center > Applescript Gurus: Folder script needed

Applescript Gurus: Folder script needed
Thread Tools
Junior Member
Join Date: Nov 1999
Location: E. Brunswick, NJ USA
Status: Offline
Reply With Quote
Jan 7, 2001, 04:02 PM
 
Another one for the "Sounds easy enough" pile:

I'm looking for a script that will create a folder in a certain location on my hard drive. The name of the folder to be created should be based on the subject of an email received in MS Entorage. Any hints on how this could be done? i would only call the script on certain emails, for which I can assign a rule in entorage. That's not the problem, it's trying to figure out the script.

Any hints?

------------------
James Kass (no, the other one...)
kassj@home.com
Coming soon: http://my8by10.com
James Kass (no, the other one...)
james@nycomedyradio.com
http://NYComedyRadio.com :)
     
Dedicated MacNNer
Join Date: Nov 1999
Location: Georgetown, Demerara, Guyana
Status: Offline
Reply With Quote
Jan 12, 2001, 05:16 PM
 
Hi James,

Sorry about this delayed response... I was really hoping that someone else who's more familiar with MS OE/Entourage would jump in to offer advice.

I'm not sure about how to extract an email's subject line in MS Enoturage. You could try searching at AppleScript Central, which has several MS OE/Entourage scripts (actually, with any luck, you may even find the exact script you're looking for).

In general though, assuming that you have extracted the subject-line -- and have truncated it if necessary to ensure that it contains no more than 31 chars (the length-limit of a folder-name in Mac OS 9.x or earlier) -- then, the "making a new folder" part isn't hard. For example, you could 'tell app "Finder" / make new folder at (folder "some path") with properties {name:"the subject-line"} / end tell'.

Regards, and good luck,

--Paul
     
   
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 11:06 PM.
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