Applescript "expert" needed. - ehMac.ca
Facebook
Twitter
YouTube
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
Old May 27th, 2005, 12:23 AM   #1
Full Citizen
 
Join Date: Feb 2002
Location: Humboldt, SK
Posts: 104
Send a message via AIM to Larry Jorgenson
Applescript "expert" needed.

I'm helping an old priest with Parkinson's disease make the transition from OS 9 to OS X. He recently retired as editor of a newspaper called the Prairie Messenger, a Catholic religion newspaper. As editor, his favorite program was Tex-edit (www.tex-edit.com) and he had built a half dozen or so custom applescripts for it and he wants to be able to use these in OS X. I know very little about Applescript and I have previously tried troubleshooting his scripts with great difficulty (in OS 9). Should all the scripts just contine to work in OS X? Most of them are set to use function key shortcuts and in my initial testing I seem to only get beeps when trying to run them.

The scripts themselves are designed to manipulate text files downloaded from the Catholic News Service and/or the Religious News Service. Ideally what I would like to find is some kind member who wouldn't mind taking a peak at the scripts and telling me how to modify them if necessary to work in OS X.

Anybody feeling generous?
__________________
Larry Jorgenson
Humboldt, SK
Larry Jorgenson is offline   Reply With Quote
Sponsored Links
Advertisement
 
Old May 29th, 2005, 03:04 PM   #2
Honourable Citizen
 
Join Date: Jan 2001
Posts: 1,140
.

Last edited by SkyHook; Jul 21st, 2008 at 10:22 PM.
SkyHook is offline   Reply With Quote
Old May 30th, 2005, 10:04 AM   #3
Full Citizen
 
Join Date: Feb 2002
Location: Humboldt, SK
Posts: 104
Send a message via AIM to Larry Jorgenson
File Path

I think I've got most of them working. The only one I'm having trouble with is one which takes some highlighted text, copies the first three words, tries to append these three words to a file path, and then save the file to the specified file path. Of course my path has changed slightly and with moving from OS 9 to X the required syntax for paths is changed. Trouble is, I don't know to what. How would I program applescript to put the path to a file into a variable in Applescript. Assume the file is inside a folder called "Andrew" inside the users home folder and that the file to be saved is entitled "First Three Words". Am I wrong to assume the path I would be looking for is ~Andrew/First Three Words?
__________________
Larry Jorgenson
Humboldt, SK
Larry Jorgenson is offline   Reply With Quote
Old Jun 5th, 2005, 08:16 PM   #4
Honourable Citizen
 
Join Date: Jan 2001
Posts: 1,140
.

Last edited by SkyHook; Jul 21st, 2008 at 10:21 PM.
SkyHook is offline   Reply With Quote
Old Jun 7th, 2005, 04:05 PM   #5
Honourable Citizen
 
bhil's Avatar
 
Join Date: Oct 2004
Location: Regina
Posts: 1,632
Wow! I didn't know anyone in the Humboldt area even knew what a Mac was! (Just kidding, I'm from Humboldt originally.) This is what you want to use to create the new folder:
Code:
set folderPath to "Macintosh HD:Users:Andrew"
set folderName to "First Three Words"
tell application "Finder"
 make new folder at folder folderPath with properties {name:folderName}
end tell
For the path, "Macintosh HD" is the name of the hard drive in the computer. "Users" is the default directory that user accounts are created in. "Andrew" is the user folder you would like the new directory stored in.

While "~Andrew" would be the proper way to refer to the directory in the Terminal window, AppleScript doesn't seem to like that format
bhil is offline   Reply With Quote
Old Jun 7th, 2005, 04:23 PM   #6
Full Citizen
 
Join Date: Feb 2002
Location: Humboldt, SK
Posts: 104
Send a message via AIM to Larry Jorgenson
Thanks. I actually found this out on my own eventually and it is working fine.
__________________
Larry Jorgenson
Humboldt, SK
Larry Jorgenson is offline   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 Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shuffle and win. 2000 help needed gnatsum Everything Else, eh! 5 Aug 24th, 2005 07:20 PM
Using AppleScript to Switch Users AppleAuthority Mac, iPhone, iPad and iPod Help & Troubleshooting 0 Aug 14th, 2005 05:31 PM
Applescript! someone Anything Mac 13 Jul 27th, 2005 07:15 PM
iPod Warranty Help Needed beagleyguy All iOS - iPhone, iPad, iPod touch, Apple TV & iTunes 1 Feb 22nd, 2005 12:45 PM
Applescript experts: Looking for a simple solution to a scripting issue... Troutmagnet Mac, iPhone, iPad and iPod Help & Troubleshooting 0 Dec 12th, 2003 10:43 AM


All times are GMT -4. The time now is 03:47 AM.



Copyright © 1999 - 2012, ehMac.ca All rights reserved. ehMac is not affiliated with Apple Inc. Mac, iPod, iTunes, iPhone, Apple TV are trademarks of Apple Inc. Content Relevant URLs by vBSEO 3.6.0 RC 2

Tribe.ca: Urban living in Toronto!