Using AI to mount server?

Hi all.
Maybe someone can help me with this one. I would like to "teach" my script where to mount a server from.
The synopsis is as follows;
property NetworkVolume: ""
property VolumeName:""
if NetworkServer is "" then
-- Prompt the user to mount the appropriate share
set NetworkVolume to Server URL -- ie "afp:/at/..."
set VolumeName to name of that server volume
else
if not exists volume VolumeName then
mount volume NetworkVolume
end
end
in other words, I would like the script to learn how to mount a specific share without prior knowledge of either its name of URL.
Hope somebody can help me with this!
TIA
Power Mac G4 MDD Dual 837 Mhz   Mac OS X (10.4.5)  

Actually I would rather compare the Previous Disk
List information with the new one AFTER the user has
mounted his/her share. if that is at all possible
that is. I know I can "figure out" which disk has
been added top the desktop but what about extracting
its AFP URL from it for later "automount" action.
You can get the mounted server from 'Recent Servers' folder. But you need to get the latest one. One way to do that is to compare modification date of them.
Once you get the server, you just extract its location. Here is an example:
set _library to path to library folder from user domain as string
tell application "Finder"
set recent_servers to (internet location files of folder (_library & "Recent Servers"))
set _date to (current date) - (365 * days) -- just arbitrary date
repeat with _server in recent_servers
if modification date of _server is greater than _date then set _date to modification date of _server
end repeat
return location of (first internet location file of folder (_library & "Recent Servers")) whose modification date is _date
end tell

Similar Messages

  • T4-1 rack mount server as a remote server for disaster recovery setup.

    Hi, 
    I would like to ask some basic questions, as Solaris is not my area.
    1)
    T4-1 server is a rack mount server.  Now, we would like to use it for DR purpose.  Can we keep this rack mount server on remote location without conversion kit (to use it as a tower server).
    2)
    As I am new to this, would like to ask a basic question. This T4-1 server has 4 * 300GB hdd.   To expand storage capacity, we would like to add hard disks to this server.  Do we have to add 300gb hard disks only ? or we can add 2 new 600 GB hard disks.
    Thanks

    1) Yes, it does not need to be racked to run.  Putting it on a wire rack should work fine. Just verify the power and cooling requirements.
    2) You can add new internal disks, the system holds up to 8 internal 2.5" disks. Using a zpool, I would consider adding 4 more 600G disks for a RAIDZ pool, though you can add 2 600G disks and mirror them.
    Erik

  • Which attached storage you are using for your Macmini Server?

    Hi all,
    I am very confusing to choose a right attached storage for my small office use - with my Macmini server - for storage shared files, documents...
    My intend is to select one with:
    - Firewire 800 connection (2 is best)
    - 2 internal disks so I can make RAID 1
    - Do not need any manual operating like turn on, turn off when power Mac down, up or electricity down, up
    - Quiet
    - Not make a lot of heat
    I read many review of product as Buffalo, WD, Drobo, Promiss... but I still not quite convince before make an order. Each products has some weak points (as I understood through review):
    - Promiss: can not power on it self after electricity down and back, so this means we need a person to manually turn it on after that.
    - Drobo: noisy and bad quality?
    - WD: has some problem to maintain mount (through firewire) when reboot macmini?
    - Buffalo: I preffered this one but it do not have Firewire, only USB 2.0 and I afraid this is not enough for my sharing files purpose.
    So please share you experience and help me to choose the best, thanks!

    Thanks!
    I just bought 2 Buffalo box (single disk), I will try to buy Drobo box for a RAID soon!
    BTW, do you have problem when restart server when use firewire connection?

  • Setting Default Views of Mounted Server Shares

    In OS X 10.5 server, how do I change the owner of a volume? So I can do the stuff below? Do I change the owner in the Finder...? Or do you use the OS X Server admin utility type programs?
    Thanks
    Re: Setting Default Views of Mounted Server Shares
    Posted: Dec 18, 2007 9:49 AM in response to: William Read
    Solved
    Have you tried this?
    http://docs.info.apple.com/article.html?artnum=107482
    You can set custom view options (window size, icon placement, and so forth) that clients see when they connect to a server volume via Apple File Service (AFP).
    You can customize the size, position, and other view options of the window that clients see when they connect to a server volume via Apple File Service (AFP). You can do this on a per-volume basis.
    To customize view options, follow these steps:
    1. Log in to a client computer.
    2. Using Connect to Server, connect to the target volume as the owner of the volume; the owner must not be an administrator account (see Notes 1, 2, and 3, below).
    3. Make any desired changes to the window position, view mode (Icons, List, Columns), icon arrangement, or any of the settings found in View Options window (Command-J).
    4. Disconnect from the server volume by dragging it to the Trash.

    In OS X 10.5 server, how do I change the owner of a volume? So I can do the stuff below? Do I change the owner in the Finder...? Or do you use the OS X Server admin utility type programs?
    Thanks
    Re: Setting Default Views of Mounted Server Shares
    Posted: Dec 18, 2007 9:49 AM in response to: William Read
    Solved
    Have you tried this?
    http://docs.info.apple.com/article.html?artnum=107482
    You can set custom view options (window size, icon placement, and so forth) that clients see when they connect to a server volume via Apple File Service (AFP).
    You can customize the size, position, and other view options of the window that clients see when they connect to a server volume via Apple File Service (AFP). You can do this on a per-volume basis.
    To customize view options, follow these steps:
    1. Log in to a client computer.
    2. Using Connect to Server, connect to the target volume as the owner of the volume; the owner must not be an administrator account (see Notes 1, 2, and 3, below).
    3. Make any desired changes to the window position, view mode (Icons, List, Columns), icon arrangement, or any of the settings found in View Options window (Command-J).
    4. Disconnect from the server volume by dragging it to the Trash.

  • MCX Login Items: Mounting Server Volumes

    I noticed that when you set up a policy for a user,group or computer to mount a remote volue at login, you will get a Finder error if the volume can't be mounted for some reason (i.e.; the server is down, the volume is not available etc. This can be handy for troubleshooting.
    Is there a way to surpress the error, so my mobile users dont get an error when the remote volumes are unavailable?
    Example: A lot of my Mac users will have laptops, and thus sometimes they will be away from our LAN. I want they to still be bound to OD and have cached MCX settings when they are on the road. However, I dont want the users to get "Volume could not be found" errors.
    Message was edited by: Daniel Stranathan

    I think you should be able to use AppleScript to mount the volume, put that code inside a "try" construct, and leave the "on error" blank. Like this:
    try
    tell "Finder"
    mount volume "afp://[user]:[passwd]@[server hostname or IP]:/[sharepoint]"
    end tell
    on error
    -- do nothing
    end try
    I haven't tried this, but thought it might work.

  • Mounting Server Volumes Via Startup Items

    I'm going crazy here trying to figure out what's going on with my wireless AirPort network!!!
    While trying to set up the first G4 iBook (10.4.2) from an Apple wireless cart I've discovered that I can't get a server volume to automatically mount at startup. I'm connecting to an AirPort Extreme base station. The iBook has no problem detecting and connecting to the base station and allowing an Internet connection and you can manually connect to a file server. But if I add a server volume to the Startup Items I can't get it to mount the volume at startup.
    Here's some stuff I've done to try to isolate the problem but nothing seems to point to a solution:
    - If I connect via Ethernet, it works everytime - so the issue is definately AirPort related.
    - Since I have 3 other independent AirPort networks (Extreme & Dual Ethernet) I tried connecting to them - no help.
    - After startup is finished I can connect manually (Go/Connect to Server).
    - Here's a real stumper... If I log out (not a reboot) & log back in - the volumes mount!!!
    - Up until now I had my personal eMac (10.3.9) connecting and mounting the same volumes via one of my previously mentioned AirPort networks with no problems. In trying to solve this problem I cleared out my Startup Items, Keychains, etc. - now I can't get it to work either.
    - I tried setting a new user in case it was some fouled up user setting - no help.
    - I've cleared out and set up Keychains & Startup Items numerous times - no help.
    - I disabled security - no help.
    So in my opinion I've ruled out the following by process of elimination:
    - System hardware - problem exists with eMac & iBook
    - OS - problem exists with 10.3.9 & 10.4.2
    - Base station - problem exists across differing base stations (Extreme & Dual Ethernet) & differing networks
    - Users - problem exists with new user
    - Security - problem exists with security disabled
    Here's the one thing that seems evident....
    The connection to any Airport network takes a momentary delay during startup - enough to cause to Startup Items (server volumes) not to mount. Since I can connect to the server manually shows that the AirPort connection is good. Logging out & then back in uses an AirPort connection that is already established and then will mount the Startup Items (server volumes).
    I've seen some Internet posts that suggest using scripts to somehow delay certain Startup Items from executing until an AirPort connection is established - I would rather avoid that mess. There's got to be a better solution! This seems to me like a very basic function that shouldn't take scripts or other such voodoo!
    I'm all out of ideas.....
    Dave

    Hi Dave,
    I recently had the same problem. I think a recent update messed up the way I was using applescript to mount drives. I would get messages while the script ran that would indicate things timing out while looking for drives. After reading through a lot of forums I found that this script worked for me:
    tell application "Finder"
         mount volume "afp://user:[email protected]/VolumeName"
    end tell
    This is for mounting a Mac server volume. I think you use smb:// for a win server.
    Let me know if this works for you.
    Herb

  • How can we find out the disk which is used for a mount point

    How can we find out the disk which is used for a mount point?
    one of our mount point(/u03/oracle/prod) was using high I/O and this was causing slowness in the server.
    I can see a disk operation error in errpt at the same time as below. Wanted to check whether the mount point /u03/oracle/prod is using the disk hdisk31
    $errpt|more
    IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
    DXB78877 1125032114 T H hdisk31 DISK OPERATION ERROR
    OS version:AIX 6.1
    DB:11.2.0.2

    this is the output for cat /etc/filesystem
    /u02:
            dev             = /dev/fslv00
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false
    /u01:
            dev             = /dev/fslv01
            vfs             = jfs2
            log             = /dev/loglv00
            mount           = true
            options         = rw
            account         = false

  • Sidebar does not show mounted server shares

    I have several Macs. On my iMac which is connected to the network via ethernet the finder sidebar shows my server in the shared section as well as the mounted server shares in the devices section which is great as I have them in every open/save box. Now on my MacBook (connected via Airport) I can see the server in the shared section but no matterf how many shares I mount they never appear in the devices section. That means connecting to the server each and every time I open or save something which is annoying as you can imagine. I have cehcked every box in the Finde sidebar prefeneces, so it can't be that.
    Anyone got an idea?
    Thanks!

    Thank you very, very much for taking the effort to reply.
    But I'm sorry, I'm rather afraid…..to do these actions…I'm not in a great hurry, so take your time!
    Could you please be so kind to tell me step, by step, the right order of were to start etc. in the given link:
    '''Using the profile manager to make Firefox-profiles and to remove'''
    Inhoudsopgave (Content)
    -De profielbeheerder starten (to start the profile manager)
    -Een profiel aanmaken (to creatie a profiel)
    -Een profiel verwijderen (to remover a profiel)
    -Een profiel hernoemen (to rename a profiel)
    Opties (Options)
    -Offline werken (working offline)
    -Niet vragen bij het opstarten (no asking at starting)
    -Een profiel verplaatsen (to move a profiel)
    -Gegevens uit een oud profiel terugzetten ( to replace data of an old profiel)
    I would be very grateful for your eventual answer!
    EDIT: A FURTHER AND PROPER look on your links, shows that the STEPS ARE THERE already. So I'l find it out myself, and give you the result of my Operation, independant of success or not!

  • ITunes Library incorrectly linked to Mounted Server

    Hi there,
    I've got a huge problem. I, foolishly, tried to share my iTunes library between my iMac and MacBook yesterday doing the following:
    1. In System Preferences I added both my iTunes Music folder, which is located on an external hard drive and holds all my media files and my iTunes Library files, which are located locally on my iMac (Home - Music - iTunes)
    2. On the MacBook, I opened iTunes and then under the preferences, selected the iTunes Music folder which now showed up within the finder when I selected the Shared - iMac option.
    3. I then optioned click iTunes on the MacBook Pro and selected the iTunes Library as shared above (again, it showed up in Finder under the Shared option, where I clicked on the iMac symbol and was then able to pick the library folder).
    On the MacBook Pro, when I now open iTunes it properly shows my iTunes library as it used to be on the iMac and when I add songs it adds them wirelessly to the external hard drive and updates the library, playlist, play count etc.
    So far so good. That is what I wanted. Well at least until I went back to my iMac opening iTunes there and now while all the songs are still listed (including the new ones I added from the MacBook), all the songs in iTunes on the iMac have the exclamation mark next to them.
    Double clicking a song brings up to boxes then. The first box says: "Connection failed. The server "iMac" is available on your computer. Access the volumes and files locally." When i hit okay, i then get a second box coming up saying "The Song "XYZ" could not be used because the original file could not be found. Would you like to locate it?". If I hit Locate, I can go through to the external hard drive selecting the song and it plays, but my iTunes library is fairly extensive so it's not feasible to do that with all the songs.
    What I think happened is that somehow the iTunes library files have been updated so to link to the iMac as a mounted 'server volume' when on the home network and while this works fine on the MacBook, the iMac still seems to link to the 'network' twin of its files rather than using the 'normal' library stored on its hard drive.
    Is there any way I can revert back to the original set up - i.e. have my iTUnes library on my iMac, not sharing it etc. I've tried to remove the shared folders under the system preferences etc but nothing works so I'm a bit stuck as the last thing I want to do is to remove all the songs from iTunes and re-add them as I would like to keep the order they were added as well as the play count, dates and all that.
    Thank you soo much for any help anyone can offer.

    You'd be better off starting a thread of your own, this is quite an old post. Also there are a number of issues in the original post so it's unclear from yours which one you are experiencing. If you are unsure of how to add a new topic, click on the Help & Terms of Use link in the box to your right or click here: Discussions Help & Terms of Use"

  • Macintosh mount server via SMB

    Testing out mounting NW 6.5 SP8 server from a macintish using SMB versus AFP.. I can successfully mount the server via AFP and also with SMB. When I mount the server via AFP the mounted server shows the complete server name appended with the volume name ie (testserver.vol1).. if I mount the same server and volume via SMB is simply mounts as VOL1 (no server name)..
    If i use Imanager and change the CIFS properties of the server to add shares for the volumes (ie add testserver.vol1) and then restart cifs, I cannot log into the server anymore (it reports back that a unexpected error has occurred - error code -50)..If I delete the added shared and let the server simply report the default names, and then re-start CIFS, I can again login to the server
    anyone have any ideas ??
    Thanks in advance
    Doug

    On 23/03/2012 16:26, roehmdo wrote:
    > Testing out mounting NW 6.5 SP8 server from a macintish using SMB versus
    > AFP.. I can successfully mount the server via AFP and also with SMB.
    > When I mount the server via AFP the mounted server shows the complete
    > server name appended with the volume name ie (testserver.vol1).. if I
    > mount the same server and volume via SMB is simply mounts as VOL1 (no
    > server name)..
    >
    > If i use Imanager and change the CIFS properties of the server to add
    > shares for the volumes (ie add testserver.vol1) and then restart cifs, I
    > cannot log into the server anymore (it reports back that a unexpected
    > error has occurred - error code -50)..If I delete the added shared and
    > let the server simply report the default names, and then re-start CIFS,
    > I can again login to the server
    Are you trying to make the CIFS (SMB) mount appear in the same format as
    the AFP mount?
    If so then you can't but you can make the the AFP mount appear the same
    as CIFS by setting the Shared Volume Name in iManager or editing
    /etc/opt/novell/afptcpd/afpvols.conf.
    Finally please note there is a dedicated support forum covering CIFS and
    AFP @
    http://forums.novell.com/novell/nove...e-file-access/
    HTH.
    Simon
    Novell/SUSE/NetIQ Knowledge Partner
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partner (TTP) program. See novell.com/ttp for more details.

  • Using Office Web Apps Server with SharePoint Foundation 2013

    I want to know whether I can configure Office Web Apps server to edit Excel documents on a SharePoint Foundation 2013 site.
    I came across a TechNet article that states that "When used together with SharePoint Server 2013, Office Web Apps Server provides updated versions of Word Web App, Excel Web App, PowerPoint Web App, and OneNote Web App".
    However, later in the same article, it states "If your organization licenses Office 2013 through a Volume Licensing program, you can enable Office Web Apps editing for SharePoint 2013 on-premises" (without mentioning Foundation or Server).

    Hi Lemesnil,
    The Office Web App server should support the Edit licenses for SharePoin Foundation 2013, Office Web App is free to
    download, you can also try installing and configuring in a test environment, see more from the below article applied to SharePoint Foundation 2013.
    http://support.microsoft.com/kb/2886404/en-us
    http://blogs.technet.com/b/speschka/archive/2012/12/31/enabling-licensing-and-editing-for-office-web-apps-in-sharepoint-2013.aspx
    Anohter useful article aobut how to license Office Web App server, you can take a look.
    http://blogs.technet.com/b/volume-licensing/archive/2013/05/22/how-to-license-office-web-apps-server.aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • I am using the "G Web Server" with Bridgeview 2.1. The problem I am having is that I have to

    restart the web server once every 2 to 3 days, or the web pages don't show the vi (images). Any ideas to trouble shoot - I dont know if the problem is related to my workstation hardware or a setting that needs to be tweaked on the G Web Server. Thank you.I am using a Pentium 233 machine/ Win 95. The PLC I am collecting info from is a GE Fanuc Series 9030 (?). Ethernet connection.

    restart the web server once every 2 to 3 days, or the web pages don't show the vi (images). Any ideas to trouble shoot - I dont know if the problem is related to my workstation hardware or a setting that needs to be tweaked on the G Web Server. Thank you.Hi,
    we are using the G Web Server with LabVIEW on a WinNT 4 machine. Up to now these works fine. Therefore I would recommend you to choose a more stable OS.
    Maybe you can try to programmatically restart the server every 2 days. Within LabVIEW you would do this by running "HTTP Server Control.vi". Unfortunatly all connections will be closed, thus be aware of that!
    Hope that helps
    chris

  • How to use the same OC4j server with different port number

    How to use the same OC4j server with different port numbers..?
    I have to OC4J installed on my machine on different hard disk drives....
    I want to be able to run both the server simultaneously..?
    is it possible ..it yes then how..?
    for that i have changed the port number of one server...
    but when i am trying to start the other server with different port number..it says that JVM -Bind already...
    Is there any clues...?
    Nilesh G

    In the config directory:
    default-web-site.xml: Change the port the HTTP listener listens on
    jms.xml: Change the port the JMS service listens on
    rmi.xml: Change the port the ORMI listener listens on.
    Or, you can add another web-site.xml file, and deploy your applications to 1 server, and bind the web applications to the different web sites. This way you only have to deploy your applications to 1 place.
    Rob
    Oracle

  • Can java mail be used for distributed exchange server?

    H,
    I am trying to connect to MS Exchange Server to read my mails using Java Mail API.
    I have a questions about using it with Exchange server.
    We have 6-7 exchange servers in our company and different users have mailboxes on different servers. My internet mail application will be used by everybody in the company.
    But while connecting to exchange server using java mail I can only cnnnect to one server and port. What happens when user mailbox is not on that server. How can I use javamail in this scenario where user mailboxes are on separate servers??
    Thanks
    [email protected]

    You said that you can connect to Exchange server my you help me with this because i cant connect to Exchange server, mayby you can post me a code example? Thanks

  • I have multiple accounts using the same smtp server, I can only reply with one as the settings wont allow me 2 servers

    I have tried to set my email to reply from my iphone 5 both of which use the same SMTP server. I can't change the settings on the others as it will only allow one mail account. Can I add multiple  with the same smtp?

    I Am not using gmail I use seperate company for my mails both use the same smtp server. The problem is when I set my first account it them uses these details and passwords when I create the second account saying that the smtp server is already in use by the primary account. I therefor can't set the password.

Maybe you are looking for

  • Ram compatibility for White Macbook 2006

    Want to upgrade RAM and note Apple specs say RAM Type: PC2-5300 SO-DIMM 200 pin Someone local to me is selling the following 2007 Two x 1 GB PC2-5300 S)-CIMM/CL5 laptop ram # Memory Type: DDR2 667 SDRAM (MicroDIMM) # Capacity: 1GB # Bus Speed: 667MHz

  • MfE keeps syncing after the account is removed (N8...

    Hi, I had some difficulties with companys Mfe on my N86 from the start. It occasionally lost my account and the Email-software just announced that no account have been installet, do you want to install now. When you closed the app opened it again or

  • Lose Netflix Closed Caption between TV episodes

    I have to access the Apple TV audio menu to reset closed captioning after each and every episode of a Netflix TV series. Is this the way it is suppose to work?

  • Attach doc thru program in  the Attachment tab of Transaction CRMD_ORDER

    Hi, Does Anybody worked on the below scenario. in the Transaction CRMD_ORDER i need to attach the document of HTML file (which the data is coming from Some other tool in a background).my requirement is to attach the document in the attachment tab in

  • Virtual Cube

    Hi, I'm trying to implement Virtual cube for standard DSO 0FIGL_O02. I customized 'RS_BCT_FIGL_DATA_GET_VC1' function module for 0FIGL_O02 infoprovider. Everything is activated properly, but still I'm facing issues in display data like : 'An exceptio