Re: Telling an iDisk from other mounted volumes
Re: Telling an iDisk from other mounted volumes
- Subject: Re: Telling an iDisk from other mounted volumes
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 12 Oct 2009 13:40:54 -0700
- Thread-topic: Telling an iDisk from other mounted volumes
Title: Re: Telling an iDisk from other mounted volumes
>>Does this work for anyone else? It works by creating an alias to the disk and reading the available 'strings'.
Had to modify it to make it run, but it works well, correctly returning my idisk, plus mounted public folders.
ES
tell application "Finder"
set diskList to (disks whose local volume is false) as alias list
end tell
set idisks to {}
repeat with i from 1 to diskList's length
set serverPath to getServerPath(item i of diskList)
if serverPath starts with "http://idisk.mac.com" then set the end of idisks to item i of diskList as text
end repeat
return idisks
on getServerPath(dsk)
set tempPath to path to temporary items
tell application "Finder"
set aliasFile to (make new alias at tempPath to dsk) as alias
end tell
try
set aliasInfo to quoted form of POSIX path of ((aliasFile as text) & ":rsrc") as text
do shell script "strings " & aliasInfo & " | grep 'http://idisk.mac.com*'"
on error errText number errNumber
return ""
end try
end getServerPath
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden