Page 1 of 1
how to detect a file is stored in icloud?

Posted:
Fri May 31, 2024 6:51 am
by JohnG
how could I detect a file is stored in icloud? (ie not stored locally).
Hazel appears to ignore files automatically "managed" into icloud. I don't need to download the immediately, but would like to apply some hazel actions as and when they are on the local disk.
Re: how to detect a file is stored in icloud?

Posted:
Fri May 31, 2024 11:13 am
by Mr_Noodle
No way to do that currently except maybe through a script. Note that Hazel mostly requires files be local to process them as many conditions may hinge upon the metadata/contents being available locally.
Re: how to detect a file is stored in icloud?

Posted:
Sat Jun 08, 2024 5:36 am
by JohnG
it isn't possible to create a null test?
Hazel rules - are about the level I can stretch to.
I can tinker with pre-existing AppleScript, writing new has never yet been successful
Is there a success test?
e.g. tag a file if an action succeeded - but don't if it fails (ie is only on icloud)
I tried but couldn't work logic
Re: how to detect a file is stored in icloud?

Posted:
Mon Jun 10, 2024 9:04 am
by Mr_Noodle
If an action is unsuccessful, Hazel will stop executing actions on that rule. So, any action coming after the action in question only happens if the previous action was successful.
Re: how to detect a file is stored in icloud?

Posted:
Sun Jul 28, 2024 7:17 am
by JohnG
Mr_Noodle wrote:If an action is unsuccessful, Hazel will stop executing actions on that rule. So, any action coming after the action in question only happens if the previous action was successful.
Thanks will try and create a "check contents" action and then "tag" <successful> or similar - which if I understand correctly will not occur if read failed