Re: A method for opening folders from Rev
Ken and Mike - Could you guys trim the quotes in your replies please? The last digest was almost half just quotes in that thread. The last message had 10 quotes back (12k) of a message two earlier in the same digest. Thanks, Jerry Jensen ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
A method for opening folders from Rev
Just to put some closure on this issue, I was able to open a folder using the following scripts that Ken Ray and John Nunez helped with: Please Note: These scripts are for opening a pre-designated folder from your Rev Stack or Standalone and will work from the Hard Drive or a CD-ROM. If you want the user to select a folder, add the Answer Folder or File method. These scripts also assume the folder path is relative to the Standalone path like on a CD-ROM. For Rev Stacks on Mac OS 8.6 - OS X: on MouseUp global MyFolderPath put the filename of this stack into MyFolderPath -- Gets the relative path set the itemdelimiter to/ delete the last item of MyFolderPath -- Deletes the name of your stack put :FolderName after MyFolderPath -- adds your folder name replace / with : in pAppPath -- makes path compatible with AppleScript put tell application quote Finder quote cr \ activate cr \ open folder quote MyFolderPath quote cr \ end tell into tScript -- Assembles AppleScript do tScript as AppleScript -- Sends AppleScript to Mac OS end MouseUp For Rev Stacks on Win OS (98, ME, 2000,) Not tested on XP: on Mouseup global MyFolderPath put the filename of this stack into MyFolderPath set the itemdelimiter to/ delete the last item of MyFolderPath -- Deletes the name of your stack put \FolderName after MyFolderPath -- adds your folder name replace / with \ in MyFolderPath -- makes path compatible Windows set the hideConsoleWindows to true get shell(start MyFolderPath) -- uses Windows console to open folder end Mouseup I hope this is helpful... - Mike Mike Brown Cyber-NY Interactive 212-475-2721 1-888-70-CYBER [EMAIL PROTECTED] From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:50:39 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Shoot... I forgot to put in the / to : conversion that appleScript needs... thanks for catching this, Mike! I've updated the code with a ConvertPath function in the tip at my site: http://www.sonsothunder.com/devres/revolution/revolution.htm?_file009 Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 1:37 PM Subject: Re: Opening folders from Rev Ken, I did find through trial and error that this Apple Script works from both the Script Editor and my Rev Stack: tell application Finder activate open folder Users:cyberny:Desktop:MyFolder end tell I found that replacing all / with : and eliminating the Macintosh HD from the start of the path enabled the script to work. Does that make sense?? I will test further but it seems to work. I don't know AppleScript so it's a bit sketchy. Now I just need a Windows solution. - Mike From: Mike Brown [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:12:25 -0400 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Ken, When I run that script through the Apple Script Editor I get the following execution error: Finder got an Error: Can't get folder Macintosh HD From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 12:28:31 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, Try putting the script into Apple's Script editor (sans all the Transcript stuff) and see if it works from there: -- Suppose your hard disk is named Macintosh HD tell application Finder activate open folder Macintosh HD end tell If this doesn't work, let me know... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 12:20 PM Subject: Re: Opening folders from Rev Hi Ken, Still no luck. I tried it on Mac OS 9.2, OSX and Win 98... no luck on all fronts. I also tried minimizing the script for each specific OS to avoid mistakes but still no luck. On Mac OS 9.2 the script does bring the Finder to the front but then nothing else happens. I created a test fld for the script and it is adding the appropriate path to the folder a sending the AppleScript message. - Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 10:50:30 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, I think you might need to add a colon to the path name in the open folder part of the applescript: open folder quote pPath : quote cr Try that and let me know, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com
Re: Opening folders from Rev
Hi Ken, Thanks for the Script.. I can't get it to work though. maybe I am implementing it incorrectly. I am working on a Mac with OS X and 9.2 for Classic mode. I have also tested on a Win 98 PC. The script accurately selects the folder path and assembles the Apple Script but nothing happens after that. Any other ideas? Thanks, Mike To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, You can do it completely with Transcript... here's a way to do it on Windows, Mac OS X and OS 9. The Windows version is a little sneaky as it takes advantage of aliases, but it works nonethelss. I'll be posting this tip on my site tomorrow (http://www.sonsothunder.com/revolution/revolution.htm?file009) as my FTP server is temporarily down, but in the meantime, here's the code: on mouseUp answer folder Get a folder: if it then OpenFolder it end if end mouseUp on OpenFolder pPath switch (the platform) case Win32 create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk break case MacOS if the systemVersion = 10 then get shell(open pPath) else put tell application quote Finder quote cr \ activate cr \ open folder quote pPath quote cr \ end tell into tScript do tScript as AppleScript end if break end switch end OpenFolder Enjoy! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 2:25 PM Subject: Opening folders from Rev Anyone know a method for popping open a folder (directory) from Rev in Win and/or Mac OS? I want to allow users of my app to open a folder and grab files while still in the Rev app. Thanks, Mike ___ 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
Re: Opening folders from Rev
Mike, I think you might need to add a colon to the path name in the open folder part of the applescript: open folder quote pPath : quote cr Try that and let me know, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 8:44 AM Subject: Re: Opening folders from Rev Hi Ken, Thanks for the Script.. I can't get it to work though. maybe I am implementing it incorrectly. I am working on a Mac with OS X and 9.2 for Classic mode. I have also tested on a Win 98 PC. The script accurately selects the folder path and assembles the Apple Script but nothing happens after that. Any other ideas? Thanks, Mike To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, You can do it completely with Transcript... here's a way to do it on Windows, Mac OS X and OS 9. The Windows version is a little sneaky as it takes advantage of aliases, but it works nonethelss. I'll be posting this tip on my site tomorrow (http://www.sonsothunder.com/revolution/revolution.htm?file009) as my FTP server is temporarily down, but in the meantime, here's the code: on mouseUp answer folder Get a folder: if it then OpenFolder it end if end mouseUp on OpenFolder pPath switch (the platform) case Win32 create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk break case MacOS if the systemVersion = 10 then get shell(open pPath) else put tell application quote Finder quote cr \ activate cr \ open folder quote pPath quote cr \ end tell into tScript do tScript as AppleScript end if break end switch end OpenFolder Enjoy! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 2:25 PM Subject: Opening folders from Rev Anyone know a method for popping open a folder (directory) from Rev in Win and/or Mac OS? I want to allow users of my app to open a folder and grab files while still in the Rev app. Thanks, Mike ___ 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
Re: Opening folders from Rev
Hi Ken, Still no luck. I tried it on Mac OS 9.2, OSX and Win 98... no luck on all fronts. I also tried minimizing the script for each specific OS to avoid mistakes but still no luck. On Mac OS 9.2 the script does bring the Finder to the front but then nothing else happens. I created a test fld for the script and it is adding the appropriate path to the folder a sending the AppleScript message. - Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 10:50:30 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, I think you might need to add a colon to the path name in the open folder part of the applescript: open folder quote pPath : quote cr Try that and let me know, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 8:44 AM Subject: Re: Opening folders from Rev Hi Ken, Thanks for the Script.. I can't get it to work though. maybe I am implementing it incorrectly. I am working on a Mac with OS X and 9.2 for Classic mode. I have also tested on a Win 98 PC. The script accurately selects the folder path and assembles the Apple Script but nothing happens after that. Any other ideas? Thanks, Mike To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, You can do it completely with Transcript... here's a way to do it on Windows, Mac OS X and OS 9. The Windows version is a little sneaky as it takes advantage of aliases, but it works nonethelss. I'll be posting this tip on my site tomorrow (http://www.sonsothunder.com/revolution/revolution.htm?file009) as my FTP server is temporarily down, but in the meantime, here's the code: on mouseUp answer folder Get a folder: if it then OpenFolder it end if end mouseUp on OpenFolder pPath switch (the platform) case Win32 create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk break case MacOS if the systemVersion = 10 then get shell(open pPath) else put tell application quote Finder quote cr \ activate cr \ open folder quote pPath quote cr \ end tell into tScript do tScript as AppleScript end if break end switch end OpenFolder Enjoy! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 2:25 PM Subject: Opening folders from Rev Anyone know a method for popping open a folder (directory) from Rev in Win and/or Mac OS? I want to allow users of my app to open a folder and grab files while still in the Rev app. Thanks, Mike ___ 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 ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening folders from Rev
Mike, Try putting the script into Apple's Script editor (sans all the Transcript stuff) and see if it works from there: -- Suppose your hard disk is named Macintosh HD tell application Finder activate open folder Macintosh HD end tell If this doesn't work, let me know... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 12:20 PM Subject: Re: Opening folders from Rev Hi Ken, Still no luck. I tried it on Mac OS 9.2, OSX and Win 98... no luck on all fronts. I also tried minimizing the script for each specific OS to avoid mistakes but still no luck. On Mac OS 9.2 the script does bring the Finder to the front but then nothing else happens. I created a test fld for the script and it is adding the appropriate path to the folder a sending the AppleScript message. - Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 10:50:30 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, I think you might need to add a colon to the path name in the open folder part of the applescript: open folder quote pPath : quote cr Try that and let me know, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 8:44 AM Subject: Re: Opening folders from Rev Hi Ken, Thanks for the Script.. I can't get it to work though. maybe I am implementing it incorrectly. I am working on a Mac with OS X and 9.2 for Classic mode. I have also tested on a Win 98 PC. The script accurately selects the folder path and assembles the Apple Script but nothing happens after that. Any other ideas? Thanks, Mike To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, You can do it completely with Transcript... here's a way to do it on Windows, Mac OS X and OS 9. The Windows version is a little sneaky as it takes advantage of aliases, but it works nonethelss. I'll be posting this tip on my site tomorrow (http://www.sonsothunder.com/revolution/revolution.htm?file009) as my FTP server is temporarily down, but in the meantime, here's the code: on mouseUp answer folder Get a folder: if it then OpenFolder it end if end mouseUp on OpenFolder pPath switch (the platform) case Win32 create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk break case MacOS if the systemVersion = 10 then get shell(open pPath) else put tell application quote Finder quote cr \ activate cr \ open folder quote pPath quote cr \ end tell into tScript do tScript as AppleScript end if break end switch end OpenFolder Enjoy! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 2:25 PM Subject: Opening folders from Rev Anyone know a method for popping open a folder (directory) from Rev in Win and/or Mac OS? I want to allow users of my app to open a folder and grab files while still in the Rev app. Thanks, Mike ___ 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 ___ 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
Re: Opening folders from Rev
Recently, Mike Brown wrote: Well... I can now open folders from a Rev App on the Mac OS thanks to Ken Ray. I thought I had a method for Windows using this method: get shell(start MyFolderPath) This works great from a Rev file but not from a Standalone (.exe). For some reason when I convert my stack to a standalone, this script no longer opens my folder but launches another window with my standalone Application. This can go on and on until the screen is full of multiple copies of my Standalone. I suppose this is caused by the start command passing through my executable?? Does anyone have an alternate command to the Start or an alternate method for opening folders in Windows OS from my Rev Standalone? Sounds like you might be using a relative path to the folder, instead of an absolute path. If this is the case, try establishing an absolute path to your folder ie c:/program files/myfolder. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening folders from Rev
Hi Scott, I'm using an absolute path to locate the folder (I use the filename function to get it). That part works great. I test it by running the script through a fld in the stack that displays the path. I can then copy that same path and execute it from the Windows Run window or from an OS Window and it will pop the folder open. The get shell(start MyFolderPath) script works in a Rev Stack just not in an Executable. I think I need an alternative method to the Start portion of the script. Thanks, Mike From: Scott Rossi [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 16:14:12 -0700 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Recently, Mike Brown wrote: Well... I can now open folders from a Rev App on the Mac OS thanks to Ken Ray. I thought I had a method for Windows using this method: get shell(start MyFolderPath) This works great from a Rev file but not from a Standalone (.exe). For some reason when I convert my stack to a standalone, this script no longer opens my folder but launches another window with my standalone Application. This can go on and on until the screen is full of multiple copies of my Standalone. I suppose this is caused by the start command passing through my executable?? Does anyone have an alternate command to the Start or an alternate method for opening folders in Windows OS from my Rev Standalone? Sounds like you might be using a relative path to the folder, instead of an absolute path. If this is the case, try establishing an absolute path to your folder ie c:/program files/myfolder. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ 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
Re: Opening folders from Rev
Mike, did the create alias option in my post not work for you? It worked for me on Windows 2000... As a refresher, that was (for a folder at pPath): create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 6:06 PM Subject: Re: Opening folders from Rev Well... I can now open folders from a Rev App on the Mac OS thanks to Ken Ray. I thought I had a method for Windows using this method: get shell(start MyFolderPath) This works great from a Rev file but not from a Standalone (.exe). For some reason when I convert my stack to a standalone, this script no longer opens my folder but launches another window with my standalone Application. This can go on and on until the screen is full of multiple copies of my Standalone. I suppose this is caused by the start command passing through my executable?? Does anyone have an alternate command to the Start or an alternate method for opening folders in Windows OS from my Rev Standalone? Thanks, Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:50:39 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Shoot... I forgot to put in the / to : conversion that appleScript needs... thanks for catching this, Mike! I've updated the code with a ConvertPath function in the tip at my site: http://www.sonsothunder.com/devres/revolution/revolution.htm?_file009 Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 1:37 PM Subject: Re: Opening folders from Rev Ken, I did find through trial and error that this Apple Script works from both the Script Editor and my Rev Stack: tell application Finder activate open folder Users:cyberny:Desktop:MyFolder end tell I found that replacing all / with : and eliminating the Macintosh HD from the start of the path enabled the script to work. Does that make sense?? I will test further but it seems to work. I don't know AppleScript so it's a bit sketchy. Now I just need a Windows solution. - Mike From: Mike Brown [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:12:25 -0400 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Ken, When I run that script through the Apple Script Editor I get the following execution error: Finder got an Error: Can't get folder Macintosh HD From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 12:28:31 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, Try putting the script into Apple's Script editor (sans all the Transcript stuff) and see if it works from there: -- Suppose your hard disk is named Macintosh HD tell application Finder activate open folder Macintosh HD end tell If this doesn't work, let me know... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 12:20 PM Subject: Re: Opening folders from Rev Hi Ken, Still no luck. I tried it on Mac OS 9.2, OSX and Win 98... no luck on all fronts. I also tried minimizing the script for each specific OS to avoid mistakes but still no luck. On Mac OS 9.2 the script does bring the Finder to the front but then nothing else happens. I created a test fld for the script and it is adding the appropriate path to the folder a sending the AppleScript message. - Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 10:50:30 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, I think you might need to add a colon to the path name in the open folder part of the applescript: open folder quote pPath : quote cr Try that and let me know, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 8:44 AM Subject: Re: Opening folders from Rev Hi Ken, Thanks for the Script.. I can't get it to work though. maybe I am implementing it incorrectly. I am working on a Mac with OS X and 9.2
Re: Opening folders from Rev
Hi Ken, I did try your script on Win 98 but without any luck. The get shell(C:\Temp.lnk) part of the script doesn't seem to do anything. The other parts work including creating the alias, placing the path within the alias and finally deleting the alias. The shell command does not activate anything though. Never thought it would be this tough to open a folder. - Mike on 10/23/02 10:05 PM, Ken Ray at [EMAIL PROTECTED] wrote: Mike, did the create alias option in my post not work for you? It worked for me on Windows 2000... As a refresher, that was (for a folder at pPath): create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 6:06 PM Subject: Re: Opening folders from Rev Well... I can now open folders from a Rev App on the Mac OS thanks to Ken Ray. I thought I had a method for Windows using this method: get shell(start MyFolderPath) This works great from a Rev file but not from a Standalone (.exe). For some reason when I convert my stack to a standalone, this script no longer opens my folder but launches another window with my standalone Application. This can go on and on until the screen is full of multiple copies of my Standalone. I suppose this is caused by the start command passing through my executable?? Does anyone have an alternate command to the Start or an alternate method for opening folders in Windows OS from my Rev Standalone? Thanks, Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:50:39 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Shoot... I forgot to put in the / to : conversion that appleScript needs... thanks for catching this, Mike! I've updated the code with a ConvertPath function in the tip at my site: http://www.sonsothunder.com/devres/revolution/revolution.htm?_file009 Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 1:37 PM Subject: Re: Opening folders from Rev Ken, I did find through trial and error that this Apple Script works from both the Script Editor and my Rev Stack: tell application Finder activate open folder Users:cyberny:Desktop:MyFolder end tell I found that replacing all / with : and eliminating the Macintosh HD from the start of the path enabled the script to work. Does that make sense?? I will test further but it seems to work. I don't know AppleScript so it's a bit sketchy. Now I just need a Windows solution. - Mike From: Mike Brown [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:12:25 -0400 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Ken, When I run that script through the Apple Script Editor I get the following execution error: Finder got an Error: Can't get folder Macintosh HD From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 12:28:31 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, Try putting the script into Apple's Script editor (sans all the Transcript stuff) and see if it works from there: -- Suppose your hard disk is named Macintosh HD tell application Finder activate open folder Macintosh HD end tell If this doesn't work, let me know... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 12:20 PM Subject: Re: Opening folders from Rev Hi Ken, Still no luck. I tried it on Mac OS 9.2, OSX and Win 98... no luck on all fronts. I also tried minimizing the script for each specific OS to avoid mistakes but still no luck. On Mac OS 9.2 the script does bring the Finder to the front but then nothing else happens. I created a test fld for the script and it is adding the appropriate path to the folder a sending the AppleScript message. - Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 10:50:30 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, I think you might need to add a colon to the path name in the open folder part of the applescript: open folder quote pPath : quote cr Try that and let me know, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http
Re: Opening folders from Rev
Mike, Do me a favor... open Rev and type in the message box put the shellCommand. It may return command. If it does, check in your Windows/System32 directory and see if you have an app called CMD.EXE. If you do, you may need to change the shell command before executing the get shell part of the code with: set the shellCommand to cmd.exe Uh... anyone vote for open folder folderName ??? ;-) Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 9:37 PM Subject: Re: Opening folders from Rev Hi Ken, I did try your script on Win 98 but without any luck. The get shell(C:\Temp.lnk) part of the script doesn't seem to do anything. The other parts work including creating the alias, placing the path within the alias and finally deleting the alias. The shell command does not activate anything though. Never thought it would be this tough to open a folder. - Mike on 10/23/02 10:05 PM, Ken Ray at [EMAIL PROTECTED] wrote: Mike, did the create alias option in my post not work for you? It worked for me on Windows 2000... As a refresher, that was (for a folder at pPath): create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 6:06 PM Subject: Re: Opening folders from Rev Well... I can now open folders from a Rev App on the Mac OS thanks to Ken Ray. I thought I had a method for Windows using this method: get shell(start MyFolderPath) This works great from a Rev file but not from a Standalone (.exe). For some reason when I convert my stack to a standalone, this script no longer opens my folder but launches another window with my standalone Application. This can go on and on until the screen is full of multiple copies of my Standalone. I suppose this is caused by the start command passing through my executable?? Does anyone have an alternate command to the Start or an alternate method for opening folders in Windows OS from my Rev Standalone? Thanks, Mike From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:50:39 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Shoot... I forgot to put in the / to : conversion that appleScript needs... thanks for catching this, Mike! I've updated the code with a ConvertPath function in the tip at my site: http://www.sonsothunder.com/devres/revolution/revolution.htm?_file009 Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 1:37 PM Subject: Re: Opening folders from Rev Ken, I did find through trial and error that this Apple Script works from both the Script Editor and my Rev Stack: tell application Finder activate open folder Users:cyberny:Desktop:MyFolder end tell I found that replacing all / with : and eliminating the Macintosh HD from the start of the path enabled the script to work. Does that make sense?? I will test further but it seems to work. I don't know AppleScript so it's a bit sketchy. Now I just need a Windows solution. - Mike From: Mike Brown [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 14:12:25 -0400 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Ken, When I run that script through the Apple Script Editor I get the following execution error: Finder got an Error: Can't get folder Macintosh HD From: Ken Ray [EMAIL PROTECTED] Organization: Sons of Thunder Software Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 12:28:31 -0500 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev Mike, Try putting the script into Apple's Script editor (sans all the Transcript stuff) and see if it works from there: -- Suppose your hard disk is named Macintosh HD tell application Finder activate open folder Macintosh HD end tell If this doesn't work, let me know... Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 12:20 PM Subject: Re: Opening folders from Rev Hi Ken, Still no luck. I tried it on Mac OS 9.2, OSX and Win 98... no luck on all fronts. I also tried minimizing
Re: Opening folders from Rev
Mike, You can do it completely with Transcript... here's a way to do it on Windows, Mac OS X and OS 9. The Windows version is a little sneaky as it takes advantage of aliases, but it works nonethelss. I'll be posting this tip on my site tomorrow (http://www.sonsothunder.com/revolution/revolution.htm?file009) as my FTP server is temporarily down, but in the meantime, here's the code: on mouseUp answer folder Get a folder: if it then OpenFolder it end if end mouseUp on OpenFolder pPath switch (the platform) case Win32 create alias C:/Temp.lnk to file pPath set the hideConsoleWindows to true get shell(C:\Temp.lnk) delete file C:/Temp.lnk break case MacOS if the systemVersion = 10 then get shell(open pPath) else put tell application quote Finder quote cr \ activate cr \ open folder quote pPath quote cr \ end tell into tScript do tScript as AppleScript end if break end switch end OpenFolder Enjoy! Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ - Original Message - From: Mike Brown [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 22, 2002 2:25 PM Subject: Opening folders from Rev Anyone know a method for popping open a folder (directory) from Rev in Win and/or Mac OS? I want to allow users of my app to open a folder and grab files while still in the Rev app. Thanks, Mike ___ 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
Opening folders from Rev
Anyone know a method for popping open a folder (directory) from Rev in Win and/or Mac OS? I want to allow users of my app to open a folder and grab files while still in the Rev app. Thanks, Mike ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Opening folders from Rev with Externals
Anyone know an external available for opening a folder (directory) from Rev in Win and/or Mac OS? I have the Xworld Externals Collection but the Purchase method no longer works... so I can't register the collection. I had purchased it 2 years ago but some how it has become un-registered. Thanks, Mike ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening folders from Rev with Externals
On 10/22/02 7:22 PM, Mike Brown [EMAIL PROTECTED] wrote: Anyone know an external available for opening a folder (directory) from Rev in Win and/or Mac OS? I have the Xworld Externals Collection but the Purchase method no longer works... so I can't register the collection. Mike, I don't understand - for what purpose are you opening the folder... this is something pretty easy to do in Rev, so I'm wondering what you are trying to accomplish. When you say open what exactly do you mean? -- Troy RPSystems, Ltd. www.rpsystems.net ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening folders from Rev with Externals
I'm burning a CD-ROM that will contain a Rev Stack/app as the Table of Contents Page. The Stack will list a directory of folders on the CD - each folder containing documents. The CD will contain various folders containing documents. I want to be able to click on button within my Rev Stack and open a particular folder on the CD so that the documents may be manually dragged to the Hard Drive. I do hope it is easy to do... I just can't find the method. Thanks, Mike From: Troy Rollins [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Tue, 22 Oct 2002 19:32:22 -0400 To: [EMAIL PROTECTED] Subject: Re: Opening folders from Rev with Externals On 10/22/02 7:22 PM, Mike Brown [EMAIL PROTECTED] wrote: Anyone know an external available for opening a folder (directory) from Rev in Win and/or Mac OS? I have the Xworld Externals Collection but the Purchase method no longer works... so I can't register the collection. Mike, I don't understand - for what purpose are you opening the folder... this is something pretty easy to do in Rev, so I'm wondering what you are trying to accomplish. When you say open what exactly do you mean? -- Troy RPSystems, Ltd. www.rpsystems.net ___ 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
Re: Opening folders from Rev with Externals
Recently, Mike Brown wrote: I'm burning a CD-ROM that will contain a Rev Stack/app as the Table of Contents Page. The Stack will list a directory of folders on the CD - each folder containing documents. The CD will contain various folders containing documents. I want to be able to click on button within my Rev Stack and open a particular folder on the CD so that the documents may be manually dragged to the Hard Drive. I do hope it is easy to do... I just can't find the method. One way to do this might be to use the Externals Collection on the RunRev site. Within the collection of commands is one that opens a file as if double-clicking it. This might work with a folder as well. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Opening folders from Rev with Externals
The Externals collection on the RunRev site appears to be somewhat limited... it only has several features and I don't see the Open File as one of them. The older MetaCard Externals collection does have the Open File feature but the purchase method is no longer valid. It points to the old XWorlds web site. - Mike on 10/22/02 8:43 PM, Scott Rossi at [EMAIL PROTECTED] wrote: Recently, Mike Brown wrote: I'm burning a CD-ROM that will contain a Rev Stack/app as the Table of Contents Page. The Stack will list a directory of folders on the CD - each folder containing documents. The CD will contain various folders containing documents. I want to be able to click on button within my Rev Stack and open a particular folder on the CD so that the documents may be manually dragged to the Hard Drive. I do hope it is easy to do... I just can't find the method. One way to do this might be to use the Externals Collection on the RunRev site. Within the collection of commands is one that opens a file as if double-clicking it. This might work with a folder as well. Regards, Scott Rossi Creative Director Tactile Media, Multimedia Design - E: [EMAIL PROTECTED] W: http://www.tactilemedia.com ___ 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