• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Telling an iDisk from other mounted volumes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Telling an iDisk from other mounted volumes


  • Subject: Re: Telling an iDisk from other mounted volumes
  • From: Simon Topliss <email@hidden>
  • Date: Mon, 12 Oct 2009 20:53:06 +0100

On 12 Oct 2009, at 18:51, Stockly, Ed wrote:

I don’t know how reliable this little hack would be across many environments, but it works in my office and at home.

It does not work with mounted idisk public folders.

HTH,
ES

 tell
application "Finder"
    
set
allDisks to every disk -- as alias list
end tell

repeat with
thisDisk in allDisks
   tell application "Finder"
        
if
exists item "._Public alias" of thisDisk then
           return {
thisDisk as alias}
        
end if
   end tell
end
repeat


That doesn't work for me Ed. There's no such invisible file on my iDisk.

Does this work for anyone else? It works by creating an alias to the disk and reading the available 'strings'.

tell application "Finder"
set diskList to disks whose local volume is false --and its format is WebDAV format
end tell

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 return item i of diskList
end repeat

on getServerPath(dsk)
set tmp to (POSIX file "/tmp") as text
tell application "Finder" to set aliasFile to (make new alias file to dsk at tmp) as alias as text
try
return do shell script "strings " & quoted form of POSIX path of (aliasFile & ":rsrc") & " | grep 'http://idisk.mac.com*'"
on error
return ""
end try
end getServerPath

Mac OS 10.6.x.

Simon

 _______________________________________________
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

  • Follow-Ups:
    • Re: Telling an iDisk from other mounted volumes
      • From: "email@hidden" <email@hidden>
    • Re: Telling an iDisk from other mounted volumes
      • From: "Stockly, Ed" <email@hidden>
    • Re: Telling an iDisk from other mounted volumes
      • From: "Stockly, Ed" <email@hidden>
References: 
 >Re: Telling an iDisk from other mounted volumes (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: Re: Telling an iDisk from other mounted volumes
  • Next by Date: Re: Telling an iDisk from other mounted volumes
  • Previous by thread: Re: Telling an iDisk from other mounted volumes
  • Next by thread: Re: Telling an iDisk from other mounted volumes
  • Index(es):
    • Date
    • Thread