There are four under DCIM:
/sdcard/DCIM/.thumbnails
/sdcard/DCIM/100ANDRO
/sdcard/DCIM/Camera
/sdcard/DCIM/Timesheet
And in the directory Camera there is another sub dir "cache"
Is it a bug?
I choose it with the file selector and long press.
But I tried:
/sdcard/DCIM/Camera
/sdcard/DCIM/Camera/
/sdcard/DCIM/Camera/*
No success
Or check when the camera app is closed.
New profile "Camera Running"
Context: Application / Camera
New task: "Camera Mode Start"
Variable / Set / %startcamtime = %TIMES - 30 (do maths)
(Note, %TIME is a decimal number. Right now it's 9:46 am, so %TIME = 9.46. Not good for math.
%TIMES is time in seconds from the epoch. Good for math.)
(I subtract 30 sec just in case tasker takes a few seconds to
trigger the context when the camera opens.)
Save.
Long-click the "Camera Mode Start" task in your profile. Add Exit Task.
New task: "Camera Mode End"
File / List Files / (choose dir, choose var name %files)
Task / For / %file in %files
Misc / Test / File Modified / %file, %filetime
Task / If / %filetime > %startcamtime
File / Move / (whatever you like)
(upload to dropbox, whatever you like...)
Task / End If
Task / End For
Thank you
I see, with tasker there are many ways to Rome
:)
With the script it is working as well since yesterday
Is script less good?
Matt
It would be better (more readable) to post the exported descriptions instead of the exported xml.Matt
In the for loop, you need to change %files to %files() (so that it uses the entire %files array).
Matt
I have it on my short(ish) list already to look at why File Changed
isn't working
with a directory.
Pent
> I realize this thread is a little old, but I have a similar problem. I'd like to be able to detect when a file is added to the bluetooth folder (e.g. transmitted from another bluetooth device).
Are you saying you have tried the 'file modified' context and it does not work on this folder?
Does it work on other folders?
Is it possible to store the file name in a variable that can be accessed by the task?
You mean the file name of the transferred file? I am not sure if the modified status of the file changes with a transfer like that but there is a misc / test / file modified action in tasker and there are many ways to sort file names from a shell "find" command (this may require root)