Fame, Fortune, and... well, less of the fortune...
Aperture Assistant just got picked as the Featured Download on the Apple downloads section! http://www.apple.com/downloads/macosx/ Now, if only there were people buying registration keys... :-( Ian P.S. Does anyone have experience with http://www.ilocalizer.eu? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AppleScript - Where is System Events
Sometimes I need to find out what applications are currently running on a Mac, and I've been using the following code to get a list: put tell application quote System Events quote to get name of every process into tS do ts as applescript This normally returns an AppleScript list of application names, but I've had a couple of people complaining that they are getting prompted to choose an application with the warning Where is System Events. Anyone have any clues? Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AppleScript - Where is System Events
On May 1, 2008, at 1:18 PM, Ian Wood wrote: Sometimes I need to find out what applications are currently running on a Mac, and I've been using the following code to get a list: put tell application quote System Events quote to get name of every process into tS do ts as applescript This normally returns an AppleScript list of application names, but I've had a couple of people complaining that they are getting prompted to choose an application with the warning Where is System Events. It requires 10.3 I think, so maybe those people are using something under 10.3 sims ClipaSearch Pro http://www.ClipaTools.com Across Platforms - Code and Culture http://www.ezpzapps.com/blog/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AppleScript - Where is System Events
On 1 May 2008, at 12:29, Jim Sims wrote: It requires 10.3 I think, so maybe those people are using something under 10.3 If they're running 10.3 or below they can't run Aperture, so I doubt that that's the problem. :-( After a bit more digging this may be related to a problem when using disk-level HD copying: http://discussions.apple.com/thread.jspa?threadID=1163265tstart=0 Maybe I'll re-write the code to use a shell command instead. Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Robust Logging Script
Anyone have any experience logging events for several days or more (an event happens each second) is it better to write them out as text files broken up into a few hundred lines - or write it to a text file using the append syntax (not done this myself). It must be a common task that people have done before, but as it would take a day or so to test whether I'd chosen the most robust solution well hell thought I'd ask here :) NB - I'll be logging geopositions and when I get the plotting code done (thanks to all the help with the Shift Left operator guys) - i'll be able to plot the paths on the map. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AppleScript - Where is System Events
I just ran that bit of Applescript, and got the 'where is system events' dialog - I'm on 10.4.11. (intel mac). I guess the 'ps' or 'top' commands would work. Best, Mark On 1 May 2008, at 12:37, Ian Wood wrote: On 1 May 2008, at 12:29, Jim Sims wrote: It requires 10.3 I think, so maybe those people are using something under 10.3 If they're running 10.3 or below they can't run Aperture, so I doubt that that's the problem. :-( After a bit more digging this may be related to a problem when using disk-level HD copying: http://discussions.apple.com/thread.jspa?threadID=1163265tstart=0 Maybe I'll re-write the code to use a shell command instead. Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Robust Logging Script
I've had log files that I let run up to about 3 to 4 mb - it didn't seem to cause a problem. Best, Mark On 1 May 2008, at 12:52, David Bovill wrote: Anyone have any experience logging events for several days or more (an event happens each second) is it better to write them out as text files broken up into a few hundred lines - or write it to a text file using the append syntax (not done this myself). It must be a common task that people have done before, but as it would take a day or so to test whether I'd chosen the most robust solution well hell thought I'd ask here :) NB - I'll be logging geopositions and when I get the plotting code done (thanks to all the help with the Shift Left operator guys) - i'll be able to plot the paths on the map. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AppleScript - Where is System Events
Yes, I think I'll have to redo it using shell(top -l 1 -o +command) instead. Ian On 1 May 2008, at 12:53, Mark Smith wrote: I just ran that bit of Applescript, and got the 'where is system events' dialog - I'm on 10.4.11. (intel mac). I guess the 'ps' or 'top' commands would work. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
Ian Wood wrote: Aperture Assistant just got picked as the Featured Download on the Apple downloads section! http://www.apple.com/downloads/macosx/ Now, if only there were people buying registration keys... :-( Congratulations on the placement, Ian. Don't worry about the registrations. There's always a lag time between download and registration, and with new products this is a little longer than for those with a public track record. So just be patient, and enjoy knowing you got featured ad space at a major site for zero cost. :) -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On 1 May 2008, at 14:39, Richard Gaskin wrote: Congratulations on the placement, Ian. Don't worry about the registrations. There's always a lag time between download and registration, and with new products this is a little longer than for those with a public track record. There's time lag, and there's one purchase in the first week of an app being available... :-( But I know I need more patience when it comes to this part. So just be patient, and enjoy knowing you got featured ad space at a major site for zero cost. :) I strongly recommend that *everyone* with a publicly-available Mac app submit it to https://adcweb.apple.com/downloads/ if you haven't already done so. I was just hoping it would be listed - having it as the featured app was cream on top. It's been interesting keeping an eye on the referral statistics - in less than a day, links from the Apple site have already overtaken nearly a month of exposure on MacUpdate (two betas and the final 1.0 release), and is catching up fast with VersionTracker. Stats question - how many of you keep track of referrals and downloads via other sites? Next time I'll make sure to have multiple copies of the download so that I can keep track of how many downloads came from which site. /random rambling Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
Ian Wood wrote: It's been interesting keeping an eye on the referral statistics - in less than a day, links from the Apple site have already overtaken nearly a month of exposure on MacUpdate (two betas and the final 1.0 release), and is catching up fast with VersionTracker. Stats question - how many of you keep track of referrals and downloads via other sites? Next time I'll make sure to have multiple copies of the download so that I can keep track of how many downloads came from which site. I'm not sure I understand: log files contain the referrer, so you can track downloads of a single file from any site that way. Most log analysis software sucks, but with Rev it's easy to parse the raw logs into any format you find convenient. As for sites, in addition to Apple, MacUpdate, and VersionTracker, I also post to Download.com. There are about five million other download sites, and a very few which address specific markets can be helpful. But to be honest, I've stopped bothering with most of the smaller download sites. There's just too many of them, and most of them are in it really just for the AdSense weight they get when you link back to them. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On 1 May 2008, at 16:33, Richard Gaskin wrote: I'm not sure I understand: log files contain the referrer, so you can track downloads of a single file from any site that way. Most log analysis software sucks, but with Rev it's easy to parse the raw logs into any format you find convenient. Ah. I didn't know the logs contained referral data on a per-file basis, thanks for the heads-up. Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On May 1, 2008, at 11:33 AM, Richard Gaskin wrote: I also post to Download.com I can see that for cross platform apps, but I don't think they service Mac apps, do they? -- Troy RPSystems, Ltd. http://www.rpsystems.net ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Launching a web page
This is crazy. My code for launching a web page worked happily for many years up until ??? Now it's broken and I can't seem to fix it. launch url someUrl does not work. I cannot use any command that starts with rev... so all of those are out. Does anyone have a working handler to go to a website, launching the user's browser, on Windows? That does not involve launch url or rev...Something? I'm about to lose my marbles trying to figure this one out. The system I'm testing this on is Windows NT, systemVersion NT 5.1, no idea what's happening on other Windows systems. The following all fail: 1. set the shellCommand to cmd.exe put quote quote into theTitle get shell(start theTitle quote tURL quote) 2. local intApp local EXE_off put queryRegistry(hkey_local_machine\software\classes\http\shell\open\command\) into intApp if char 1 of intApp is quote then delete char 1 of intApp # strip leading quote put offset(EXE,intApp) into EXE_off put char 1 to (EXE_off+2) of intApp into intApp launch tURL with intApp 3.put word 1 to -2 of \ queryRegistry(HKEY_LOCAL_MACHINE\Software\Classes\http\shell\open\command\) \ into tBrowserPath launch (tBrowserPath tURL) 4.launch url tUrl I can go to a web page outside of Rev, and surf the internet fine. So it's not an issue with the internet or the browser itself. The website exists. But all attempts to get to it from within Rev fail. Shari -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launching a web page
On 1 May 2008, at 17:41, Shari wrote: I cannot use any command that starts with rev... so all of those are out. They aren't working for you, or you don't want to use them? Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Re: Fame, Fortune, and... well, less of the fortune...
Troy Rollins wrote: On May 1, 2008, at 11:33 AM, Richard Gaskin wrote: I also post to Download.com I can see that for cross platform apps, but I don't think they service Mac apps, do they? Yes, the have a Mac section too. Their major categories are: - Mac Software - Windows Software - Mobile Software - Webware Curiously absent is a category for Linux, but I suspect that will change soon enough. -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On 1 May 2008, at 16:33, Richard Gaskin wrote: Most log analysis software sucks, but with Rev it's easy to parse the raw logs into any format you find convenient. VERY useful pointer, Richard. In the interests of sharing some market research, here's the different referring domains for all downloads of AA 1.0: 760 apple.com 231 aperture-assistant.com 64 - 42 macupdate.com 38 versiontracker.com As you can see, one day of that Apple featured download has beaten ALL other downloads put together - and it went up on VersionTracker and MacUpdate on Monday morning. Here's the results for all versions both beta and final over the last three weeks (it was a short beta): 760 apple.com 408 aperture-assistant.com 264 versiontracker.com 206 macupdate.com 126 - 7 mac.softpedia.com One thing I found particularly interesting is that VersionTracker's 'number of downloads' doesn't seem to tally with the server logs - server 264 v. VT's 755. Odd. Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On 1/5/08 16:17, Ian Wood wrote: I strongly recommend that *everyone* with a publicly-available Mac app submit it to https://adcweb.apple.com/downloads/ if you haven't already done so. I was just hoping it would be listed - having it as the featured app was cream on top. It's been interesting keeping an eye on the referral statistics - in less than a day, links from the Apple site have already overtaken nearly a month of exposure on MacUpdate (two betas and the final 1.0 release), and is catching up fast with VersionTracker. Since it's some 15 years since I tried to sell an app as a product, I don't know what I'm talking about; but for anyone who is in that business, this talk by Wil Shipley (Delicious Library, formerly OmniEtc) looks like it would be interesting. Or perhaps just annoying: http://www.viddler.com/explore/rentzsch/videos/4/ - Ben ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On May 1, 2008, at 5:33 PM, Richard Gaskin wrote: Most log analysis software sucks, but with Rev it's easy to parse the raw logs into any format you find convenient. My log files include result status code (200 meaning success, 404 not found, etc) and also bytes transferred, and a few other items. I've seen some cases where the status says 200 but the bytes do not match the size of the file. Some cases where it appears that a bot starts to download and then drops it. When you parse raw logs, as you say above, do you take all these items into consideration or do you check for the file name only and just track that? Just curious about your procedure. sims ClipaSearch Pro http://www.ClipaTools.com Across Platforms - Code and Culture http://www.ezpzapps.com/blog/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launching a web page
They aren't working for you, or you don't want to use them? Ian I cannot use them. I work in the Metacard IDE, which means I cannot use handlers beginning with Rev... as those are specific to the Rev IDE. I cannot use the Rev IDE itself, as it does not like my existing projects. There is a conflict between the Rev IDE and my projects. I spent several hours trying to make my projects compatible with the Rev IDE, but gave up. The IDE is just too cranky for me. It threw up error after error, and I just didn't have the time to figure out what it wanted and redo it all. The MC IDE gives me no such troubles. Shari -- Humorous sports t-shirts http://www.villagetshirts.com WlND0WS and MAClNT0SH shareware games http://www.gypsyware.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
jim sims wrote: My log files include result status code (200 meaning success, 404 not found, etc) and also bytes transferred, and a few other items. I've seen some cases where the status says 200 but the bytes do not match the size of the file. Some cases where it appears that a bot starts to download and then drops it. When you parse raw logs, as you say above, do you take all these items into consideration or do you check for the file name only and just track that? Can't say I've ever bothered; I tend to go by the result code only. How frequently does that happen on your servers? -- Richard Gaskin Fourth World Media Corporation Developer of WebMerge: Publish any database on any Web site ___ [EMAIL PROTECTED] http://www.FourthWorld.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Launching a web page
On Fri, May 2, 2008 at 2:41 AM, Shari [EMAIL PROTECTED] wrote: This is crazy. My code for launching a web page worked happily for many years up until ??? Now it's broken and I can't seem to fix it. launch url someUrl does not work. I cannot use any command that starts with rev... so all of those are out. Does anyone have a working handler to go to a website, launching the user's browser, on Windows? That does not involve launch url or rev...Something? I'm about to lose my marbles trying to figure this one out. The system I'm testing this on is Windows NT, systemVersion NT 5.1, no idea what's happening on other Windows systems. Hi Shari, Open up the Rev IDE and have a look at the scripts in the revCommon library which you can get to using the Backscripts section of the Message box. It contains the scripts for revGoURL and various other Windows-related handlers. You might be able to work out how Rev does it and and see if you can adapt this to your needs. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Robust Logging Script
On Thu, May 1, 2008 at 9:52 PM, David Bovill [EMAIL PROTECTED] wrote: Anyone have any experience logging events for several days or more (an event happens each second) is it better to write them out as text files broken up into a few hundred lines - or write it to a text file using the append syntax (not done this myself). It must be a common task that people have done before, but as it would take a day or so to test whether I'd chosen the most robust solution well hell thought I'd ask here :) I tend to accumulate events in a field or custom property and write to file every so often but not after every event. Showing them in a field is very useful during testing, but slower than using CPs as the data gets larger, so once you are sure it is doing what you want, swap to using CPs, but with a method for displaying them if you need to check. I would also write to a date-stamped file so that you start a new log file at midnight. This will keep the file sizes down if the app is running continuously. Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AppleScript - Where is System Events
On Thu, May 1, 2008 at 9:18 PM, Ian Wood [EMAIL PROTECTED] wrote: Sometimes I need to find out what applications are currently running on a Mac, and I've been using the following code to get a list: put tell application quote System Events quote to get name of every process into tS do ts as applescript This normally returns an AppleScript list of application names, but I've had a couple of people complaining that they are getting prompted to choose an application with the warning Where is System Events. Anyone have any clues? Yes, you have a space after Events and before the quote so you are trying to tell app System Events , not System Events. Change the second double ampersand to a single and it all works fine. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: AppleScript - Where is System Events
On 1 May 2008, at 22:28, Sarah Reichelt wrote: Yes, you have a space after Events and before the quote so you are trying to tell app System Events , not System Events. Change the second double ampersand to a single and it all works fine. THANK you! So it was just a typo... Ian ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Robust Logging Script
On 5/1/08 2:20 PM, Sarah Reichelt [EMAIL PROTECTED] wrote: On Thu, May 1, 2008 at 9:52 PM, David Bovill [EMAIL PROTECTED] wrote: Anyone have any experience logging events for several days or more (an event happens each second) is it better to write them out as text files broken up into a few hundred lines - or write it to a text file using the append syntax (not done this myself). It must be a common task that people have done before, but as it would take a day or so to test whether I'd chosen the most robust solution well hell thought I'd ask here :) I tend to accumulate events in a field or custom property and write to file every so often but not after every event. Showing them in a field is very useful during testing, but slower than using CPs as the data gets larger, so once you are sure it is doing what you want, swap to using CPs, but with a method for displaying them if you need to check. I would also write to a date-stamped file so that you start a new log file at midnight. This will keep the file sizes down if the app is running continuously. Sarah A few suggestions from my limited experience: 1 devise a very terse encoding for older messages to keep the size much smaller. You can scan the file to convert back to verbose mode if needed 2 sequentially name (the seconds logEvents.txt) and start a new one if the number of chars yourMaxSizeDesired 3 keep the log in RAM, such as a custom property, and write once. 4 use the compress command in Rev to reduce file size 5 send yourself an email when the new file is created 6 send yourself an email and include the logFile.zip as an attachment 7 filter the log lines for *error* or such and create an 'errLog.txt' 8 email only the errors to you along with the time and date stamp Hope this helps Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Can't change directory with shell(cd)
I'm doing this answer folder put it into aPath put cd aPath into aRequest put aRequest into fld 1 put shell(aRequest) into fld 2 put shell(ls) into fld 3 No matter which folder I chose, Rev's 'Home' folder is the directory listed. When I cut and paste fld 1 into the Terminal, ls works as expected. What am I doing wrong or is this a 'feature';)? Thanks, Michael OS 10.5.2 2.16 GHz ICD ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
Michael D Mays wrote: I'm doing this answer folder put it into aPath put cd aPath into aRequest put aRequest into fld 1 put shell(aRequest) into fld 2 put shell(ls) into fld 3 No matter which folder I chose, Rev's 'Home' folder is the directory listed. When I cut and paste fld 1 into the Terminal, ls works as expected. What am I doing wrong or is this a 'feature';)? Does the path need to be in quotes? E.g.: put cd quoteaPathquote into aRequest -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
On Fri, May 2, 2008 at 8:54 AM, Michael D Mays [EMAIL PROTECTED] wrote: I'm doing this answer folder put it into aPath put cd aPath into aRequest put aRequest into fld 1 put shell(aRequest) into fld 2 put shell(ls) into fld 3 No matter which folder I chose, Rev's 'Home' folder is the directory listed. When I cut and paste fld 1 into the Terminal, ls works as expected. I found 2 problems with this. Firstly, if the folder name contains a space, this will not work, so I surrounded the aPath with single quotes. Secondly, I think you are using 2 separate instances of the shell as you do the commands in two separate shell calls. If you combine them into a single command and just use one shell call, it works. Here is my edited version of your script: answer folder put it into aPath put cd ' aPath ' into aRequest put aRequest cr ls into tCmd put shell(tCmd) into fld 1 However, why do you want to use a shell command for this, when the same functionality is built into Revolution commands? You could try something like this: answer folder put it into aPath set the defaultfolder to aPath put the files cr the folders into fld 1 Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Translating IP address on a local network
We have a small network behind a NAT router, with IP addresses either set manually or by DHCP in the format 192.168.1.xxx. All the computer's are Macs so they also have Bonjour names e.g. sarah-mac.local. I have set up a custom web server based on Andre's RevOnRockets. When the web server receives a request, the IP address of the requesting computer is contained in the socket ID. I would like to be able to translate that to the Bonjour name of the requesting computer as that would make the logs much more easily read. Is there a Mac shell command or any way of getting this data for addresses inside a local network which are not listed on any DNS or Directory service? I'm testing a method that works backwards. I use mDNS to give me a list that contains the computer names. Then if I convert these names to Bonjour names, I can ping then, which always gets the IP address from the name. Then I can store that data in a lookup table to use for converting IP addresses back to names. I made this into a standalone and it works fine. So then I set up a crontab entry to have the app run once a day. It runs fine and mDNS gets the list of networked computers, but ping just returns /bin/sh: line 1: ping command not found. However on the same computer when I run the app manually, it works perfectly. There must be something happening when the app runs as a cron job that is messing with it's mind. Hopefully someone with a better grasp of cron than me, can come up with a solution. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Translating IP address on a local network
You might try using the full directory path for the ping program. I suspect that you are not getting the full shell path applied to the cron since it doesn't seem to find it. Neal On Thu, May 1, 2008 at 8:56 PM, Sarah Reichelt [EMAIL PROTECTED] wrote: We have a small network behind a NAT router, with IP addresses either set manually or by DHCP in the format 192.168.1.xxx. All the computer's are Macs so they also have Bonjour names e.g. sarah-mac.local. I have set up a custom web server based on Andre's RevOnRockets. When the web server receives a request, the IP address of the requesting computer is contained in the socket ID. I would like to be able to translate that to the Bonjour name of the requesting computer as that would make the logs much more easily read. Is there a Mac shell command or any way of getting this data for addresses inside a local network which are not listed on any DNS or Directory service? I'm testing a method that works backwards. I use mDNS to give me a list that contains the computer names. Then if I convert these names to Bonjour names, I can ping then, which always gets the IP address from the name. Then I can store that data in a lookup table to use for converting IP addresses back to names. I made this into a standalone and it works fine. So then I set up a crontab entry to have the app run once a day. It runs fine and mDNS gets the list of networked computers, but ping just returns /bin/sh: line 1: ping command not found. However on the same computer when I run the app manually, it works perfectly. There must be something happening when the app runs as a cron job that is messing with it's mind. Hopefully someone with a better grasp of cron than me, can come up with a solution. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- Neal Campbell Abroham Neal Software Programming Services for Windows, OS X and Linux (540) 242 0911 - Try Spot for OS X, the intelligent DXCluster Client at www.abrohamnealsoftware.com - introduction priced at $10.99 For a great dog book, visit www.abrohamneal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Translating IP address on a local network
Hi Neal, Using /sbin/ping instead of just ping works perfectly :-) Many thanks, Sarah On Fri, May 2, 2008 at 10:58 AM, Neal Campbell [EMAIL PROTECTED] wrote: You might try using the full directory path for the ping program. I suspect that you are not getting the full shell path applied to the cron since it doesn't seem to find it. Neal On Thu, May 1, 2008 at 8:56 PM, Sarah Reichelt [EMAIL PROTECTED] wrote: We have a small network behind a NAT router, with IP addresses either set manually or by DHCP in the format 192.168.1.xxx. All the computer's are Macs so they also have Bonjour names e.g. sarah-mac.local. I have set up a custom web server based on Andre's RevOnRockets. When the web server receives a request, the IP address of the requesting computer is contained in the socket ID. I would like to be able to translate that to the Bonjour name of the requesting computer as that would make the logs much more easily read. Is there a Mac shell command or any way of getting this data for addresses inside a local network which are not listed on any DNS or Directory service? I'm testing a method that works backwards. I use mDNS to give me a list that contains the computer names. Then if I convert these names to Bonjour names, I can ping then, which always gets the IP address from the name. Then I can store that data in a lookup table to use for converting IP addresses back to names. I made this into a standalone and it works fine. So then I set up a crontab entry to have the app run once a day. It runs fine and mDNS gets the list of networked computers, but ping just returns /bin/sh: line 1: ping command not found. However on the same computer when I run the app manually, it works perfectly. There must be something happening when the app runs as a cron job that is messing with it's mind. Hopefully someone with a better grasp of cron than me, can come up with a solution. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
On May 1, 2008, at 9:29 PM, Richard Gaskin wrote: How frequently does that happen on your servers? I cannot give figures on that, but it seems rather frequent. After a while I switched to looking for the exact size of the file to indicate downloads. In any event, the most important items is paid customers ;-) Using log files does help in understanding which sites produce the best results. sims ClipaSearch Pro http://www.ClipaTools.com Across Platforms - Code and Culture http://www.ezpzapps.com/blog/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Fame, Fortune, and... well, less of the fortune...
Congratulations Ian, That speaks very well about your application. And given that you did not lobby Apple for that placement, it also speaks well about Apple fairness to select featured downloads. Regards, Andres Martinez www.baKno.com On May 1, 2008, at 6:02 AM, Ian Wood wrote: Aperture Assistant just got picked as the Featured Download on the Apple downloads section! http://www.apple.com/downloads/macosx/ Now, if only there were people buying registration keys... :-( Ian P.S. Does anyone have experience with http://www.ilocalizer.eu? ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
It was the two separate shell calls. I had enclosed file name in quotes. I neglected to type them into my email (my variable names in my script were too silly to cut and paste). The reason I was using shell() instead of a built in Rev command were: 1.) I didn't know about it :) 2.) My first objective was to copy a file into a folder. I had used revCopyFile and it was taking 15 seconds to copy a small file. I new I could use ditto and it would be (is) much faster. So I decided to do the rest with shell(). Do you have cr defined as return? Thanks! Michael On May 1, 2008, at 6:04 PM, Sarah Reichelt wrote: On Fri, May 2, 2008 at 8:54 AM, Michael D Mays [EMAIL PROTECTED] wrote: I'm doing this answer folder put it into aPath put cd aPath into aRequest put aRequest into fld 1 put shell(aRequest) into fld 2 put shell(ls) into fld 3 No matter which folder I chose, Rev's 'Home' folder is the directory listed. When I cut and paste fld 1 into the Terminal, ls works as expected. I found 2 problems with this. Firstly, if the folder name contains a space, this will not work, so I surrounded the aPath with single quotes. Secondly, I think you are using 2 separate instances of the shell as you do the commands in two separate shell calls. If you combine them into a single command and just use one shell call, it works. Here is my edited version of your script: answer folder put it into aPath put cd ' aPath ' into aRequest put aRequest cr ls into tCmd put shell(tCmd) into fld 1 However, why do you want to use a shell command for this, when the same functionality is built into Revolution commands? You could try something like this: answer folder put it into aPath set the defaultfolder to aPath put the files cr the folders into fld 1 Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
Yes you do if you have space and other evil MacOS filename characters. Sarah saw what I was doing wrong. I wonder if each shell call is threaded separately. Thanks, Michael On May 1, 2008, at 6:01 PM, Richard Gaskin wrote: Michael D Mays wrote: I'm doing this answer folder put it into aPath put cd aPath into aRequest put aRequest into fld 1 put shell(aRequest) into fld 2 put shell(ls) into fld 3 No matter which folder I chose, Rev's 'Home' folder is the directory listed. When I cut and paste fld 1 into the Terminal, ls works as expected. What am I doing wrong or is this a 'feature';)? Does the path need to be in quotes? E.g.: put cd quoteaPathquote into aRequest -- Richard Gaskin Managing Editor, revJournal ___ Rev tips, tutorials and more: http://www.revJournal.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
The reason I was using shell() instead of a built in Rev command were: 1.) I didn't know about it :) 2.) My first objective was to copy a file into a folder. I had used revCopyFile and it was taking 15 seconds to copy a small file. I new I could use ditto and it would be (is) much faster. So I decided to do the rest with shell(). Something seems wrong there. However if using ditto works for you, then that's fine. I haven't done much with copying files. Moving them is very fast using the rename command, but copying is different. If the files are small you could try: put URL (binfile: tOriginalFile) into URL (binfile: tNewFile) but if they are larger than a few MB, that might not be so good as it reads the entire file into memory before writing it out again. Do you have cr defined as return? cr is defined in Rev. I prefer using it instead of return because return also means return a value from a function and I prefer to make sure they are obviously different. And it's shorter to type :-) Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
Michael D Mays wrote: It was the two separate shell calls. I had enclosed file name in quotes. I neglected to type them into my email (my variable names in my script were too silly to cut and paste). That reminds me of an error that was built into the HyperCard engine, which reported Script too silly to execute (or something like that.) I believe I even saw it once. snip Do you have cr defined as return? The engine does. I've taken to using it exclusively for carriage return because not only is it shorter to type, it helps differentiate it from the return command. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Can't change directory with shell(cd)
You can also just set the path to another legal folder. Jim Ault Las Vegas On 5/1/08 8:06 PM, Sarah Reichelt [EMAIL PROTECTED] wrote: The reason I was using shell() instead of a built in Rev command were: 1.) I didn't know about it :) 2.) My first objective was to copy a file into a folder. I had used revCopyFile and it was taking 15 seconds to copy a small file. I new I could use ditto and it would be (is) much faster. So I decided to do the rest with shell(). Something seems wrong there. However if using ditto works for you, then that's fine. I haven't done much with copying files. Moving them is very fast using the rename command, but copying is different. If the files are small you could try: put URL (binfile: tOriginalFile) into URL (binfile: tNewFile) but if they are larger than a few MB, that might not be so good as it reads the entire file into memory before writing it out again. Do you have cr defined as return? cr is defined in Rev. I prefer using it instead of return because return also means return a value from a function and I prefer to make sure they are obviously different. And it's shorter to type :-) Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Reading commands from Apple's remote control
On Apr 30, 2008, at 10:53 AM, Andre Garzia wrote: I´ve checked Apples docs for calling objective-C/cocoa from C/Carbon applications, I understand that externals are in a sense carbon applications, I can make cocoa console apps that work with the remote, I can make externals but I can´t mix those :-/ Yes you can! I've done it... but long ago enough that I've forgotten the details. I'll bring my source to RevLive and you can see how it's done. t___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Reading commands from Apple's remote control
I´ve checked Apples docs for calling objective-C/cocoa from C/Carbon applications, I understand that externals are in a sense carbon applications, I can make cocoa console apps that work with the remote, I can make externals but I can´t mix those :-/ Yes you can! I've done it... but long ago enough that I've forgotten the details. I'll bring my source to RevLive and you can see how it's done. Sob I won't be there :-( But I'd love to have a look at your scripts if you don't mind emailing them to be off-list. Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution