Re: SMB CIFS AFP ETC... Server Path URL question
Re: SMB CIFS AFP ETC... Server Path URL question
- Subject: Re: SMB CIFS AFP ETC... Server Path URL question
- From: Jim Luther <email@hidden>
- Date: Mon, 6 Aug 2007 08:42:09 -0700
Daniel,
I can't help you with the Finder AppleScript part of your question.
However...
To get the string it displays, the Finder first uses
FSCopyURLForVolume() to get a CFURLRef to the volume. Then, it
converts the CFURLRef to a CFStringRef with CFURLGetString().
- Jim
On Aug 6, 2007, at 8:19 AM, Daniel Brieck Jr. wrote:
Hello All,
I am currently in the process of writing a small Applescript program
and was running into trouble trying to find a way to access the
actual SMB, CIFS, AFP paths (URLs) as they are listed in the
Finders' "Get Info" window for a selected Network volume.
I am trying to read the Server: field and save it as a variable for
a particular mounted network volume. I have a feeling that this may
not be a "value" that is easily accessible with AppleScript. Since I
could not find any info on it from ADC documents and the AppleScript
mailing list as of yet. Does anyone have any suggestions on what
could be use to read that Server field.
Here is the Get info window for the network drive showing a Server
path that I would like to find a way to accesses in a read only
fashion. https://cms.psu.edu/AngelUploads/Files/djb376/Get_Info.png
Again the string I am trying to read into a variable is this:
"cifs://MSHOME;DANIELBR@IBM_NETVISTA/MYVIDEOS"
Thank you,
Daniel J. Brieck Jr.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden