Most Popular in Apple
-
A fix for those "Pairing Record Missing" errors
-
Mac Hey, Sailor! Collection Lipstick Swatches
-
Apple receives regulatory approval for solar farm in North Carolina
-
Woz hired as technical advisor on Jobs biopic
-
Daily Update for May 18, 2012
-
How Much Is Zuckerberg Worth? [Live Infographic]
-
Class-action suit targets Apple for iCloud downtime
-
Yodlee Wants to Shake Up Finance, Introduce Alternate Credit Score
-
Mac Hey, Sailor! Powder Blush Swatches - Launch Away! & Fleet Fast
-
Being Open Could Close the Door on Android
How do I get LAUNCHD to output random filenames?
Hi all,
I'm trying to create a time lapse of a lego build using 'imagesnap' and 'LAUNCHD' on the mac, but I can't get my script to output a timestamped image or random filenames. It just spits out files named "$RANDOM.jpg" and replaces itself every time. It worked in CRON, but I need the interval control I can get in launchd. Help, please? Here's the script I'm using now:
(Replace all [ with <>)
Before, when I used CRON for snaps every minute, I did this:
"* * * * * /usr/share/imagesnap -t *jpg mv /Users/Print/$RANDOM.jpg"
... and it would output random filenames.
What am I doing wrong?>
(Replace all [ with <>)
[plist]
[dict]
[key]Disabled[/key]
[false]
[key]KeepAlive[/key]
[true]
[key]Label[/key]
[string]syscheck[/string]
[key]ProgramArguments[/key]
[array]
[string]/usr/share/imagesnap[/string]
[string]-t *.jpg[/string]
[string]mv[/string]
[string]/Users/Print/$RANDOM.jpg[/string]
[/array]
[key]StartInterval[/key]
[integer]15[/integer]
[/true][/false][/dict]
[/plist]"
Before, when I used CRON for snaps every minute, I did this:
"* * * * * /usr/share/imagesnap -t *jpg mv /Users/Print/$RANDOM.jpg"
... and it would output random filenames.
What am I doing wrong?>
More Stories in Ask Metafilter: Apple
- 1. Internet appliance *with browser*. 2. Hotel wifi. 3. ??? 4. Netflix!
- Help me keep my Workstation quiet!!
- How do I use a second monitor as a large typeface to-do lists that I can see at a glance from across the room?
- I Destroyed Firefox. Profile is deleted & It No Longer Works.
- Bring back the .doc
- How to parse a text file & collect a piece of each line automatically?
- Why-Fi!!!
- Read-only vs Read&write
- Startup Sets in OSX Lion (for video editing)
- Age 70 and ready for new technology, I think.
Most Popular Stories
A fix for those "Pairing Record Missing" errors
Mac Hey, Sailor! Collection Lipstick Swatches
Apple receives regulatory approval for solar farm in North Carolina
Woz hired as technical advisor on Jobs biopic
Regular expression
Daily Update for May 18, 2012
How Much Is Zuckerberg Worth? [Live Infographic]
Class-action suit targets Apple for iCloud downtime
Yodlee Wants to Shake Up Finance, Introduce Alternate Credit Score
loginlog not registering failed logins