Searching a folder on my iDisk

I have a script that sets a "folder tosearch" as a folder on my local hard disk.
What I now need to do is have that script set "folder tosearch" to a folder on my iDisk.

I'm not having any success. Can anyone tell me how I should go about it?

Thanks!

Mac OS X (10.6.4)

Posted on Aug 2, 2010 11:14 PM

Reply
2 replies

Aug 3, 2010 5:10 AM in response to Phillip Bond1

Well, there's the way I learned to do it -- kind of cheating, though. I have a directory of scripts in iDisk (aka "the cloud") as well. So let's say you have two folders, "Scripts" and "SearchHere" (which is the folder you want to search) in your iDisK. When the script executes, the following code should set you up:


set MyPath to path to me
tell application "Finder"
set TheCloud to (the container of MyPath)
set TheSearch to (TheCloud as text) & "SearchHere:"
set TheFiles to every file in (TheSearch as alias)
end tell

If you'd like, you can toss a "Return TheSearch" in there to actually see the path and then hard-code it yourself.

Vince

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Searching a folder on my iDisk

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.