Frustrating... I've changed the script on http://www.sonsothunder.com/ from a function to a regular command, and it does the job in Apple's script editor but doesn't work in Rev...
In Script Editor it looks like: tell application "Finder" set procList to the processes set procNames to "" repeat with p in procList set procNames to procNames & the name of p & (ASCII character 10) end repeat return procNames end tell And this gives me indeed a list of all running processes. In rev it looks like: (I've changed it a little) on mouseup put "tell application " & quote & "Finder" & quote & cr into vScript put "set procList to the processes" & quote & cr after vScript put "set procNames to " & quote & quote & cr after vScript put "repeat with p in procList" & cr after vScript put "set procNames to procNames & the name of p & (ASCII character 10)" & cr after vScript put "end repeat" & cr after vScript put "return procNames" & cr after vScript put "end tell" & cr after vScript do vScript as AppleScript put the result into tProcesses answer tProcesses end mouseup And this gives me a "compile error" What could be wrong? I'd prefer not to use the external but just plain applescript... Ton Kuypers > From: "Ken Ray" <[EMAIL PROTECTED]> > Organization: Sons of Thunder Software > Reply-To: [EMAIL PROTECTED] > Date: Mon, 13 Jan 2003 14:30:25 -0600 > To: <[EMAIL PROTECTED]> > Subject: Re: Getting all running programs on the mac > > Ton, > > Here's a way to do it: > > http://www.sonsothunder.com/devres/revolution/revolution.htm?_proc002 > > Have fun! > > Ken Ray > Sons of Thunder Software > Email: [EMAIL PROTECTED] > Web Site: http://www.sonsothunder.com/ > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, January 13, 2003 2:27 PM > Subject: Re: Getting all running programs on the mac > > >> Aaaargggg >> You're right, in the beta of SC4 I've got it's gone... :-(( >> >> Is there an other way to do it? We've left SuperCard development, because > we >> need XML, Database connections and cross-platform, so now I'm trying to > find >> my way in Rev... >> >> Tnx >> Ton >> >>> From: Richard Gaskin <[EMAIL PROTECTED]> >>> Reply-To: [EMAIL PROTECTED] >>> Date: Mon, 13 Jan 2003 12:14:47 -0800 >>> To: <[EMAIL PROTECTED]> >>> Subject: Re: Getting all running programs on the mac >>> >>> [EMAIL PROTECTED] wrote: >>> >>>> In Supercard there is a command to get all running programs on the mac, >>>> before >>>> sending Apple-Events to it. >>>> How do I determine is a program is running in Revolution? >>> >>> My understanding is that SuperCard's "answer programs" command relies on > an >>> OS API call that is no longer supported (I don't think it's even in the > OS X >>> version of SC 4, is it?), so it's not likely to find its way into the > Rev >>> engine. It's a handy dialog, though; would be nice if Apple could be > talked >>> into reinstating it. >>> >>> -- >>> Richard Gaskin >>> Fourth World Media Corporation >>> Developer of WebMerge 2.1: Publish any database on any site >>> ___________________________________________________________ >>> [EMAIL PROTECTED] http://www.FourthWorld.com >>> Tel: 323-225-3717 AIM: FourthWorldInc >>> >>> _______________________________________________ >>> use-revolution mailing list >>> [EMAIL PROTECTED] >>> http://lists.runrev.com/mailman/listinfo/use-revolution >>> >> >> _______________________________________________ >> use-revolution mailing list >> [EMAIL PROTECTED] >> http://lists.runrev.com/mailman/listinfo/use-revolution >> > > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution