AFP files in Tiger

I used to create AFP files, simply double click on them and avoid several steps in network connectivity via the finder.
Has anybody made AFP files in Tiger that work this way?
Thanks
e

Delay is a good workaround. You also could ping until the internet connection is active, for example. Another error I have often encoutered is when a disk is already mounted (same one as the one you read, "Disk some object wasn't found"), so you can check to see if it needs mounting, thus:
property ipaddr : "216.239.37.99" -- for pingin' Apple
--CHECK TO SEE IF INTERNET CONNECTION IS ACTIVE
repeat 10 times -- edit this to suit your needs
try
set connection_active to (do shell script " ping -c 1 " & ipaddr)
if connection_active contains "0% packet loss" then
exit repeat
end if
end try
end repeat
set vol_list to list disks
--CHECK TO SEE IF A DISK IS NOT ALREADY MOUNTED AND MOUNT IT IF NOT
if vol_list does not contain "volume1" then
mount volume "afp://username:[email protected]/volume1"
end if
if vol_list does not contain "volume2" then
mount volume "afp://username:[email protected]/volume2"
end if
if vol_list does not contain "volume3" then
mount volume "afp://username:[email protected]/volume3"
end if
if vol_list does not contain "volume4" then
mount volume "afp://username:[email protected]/volume4"
end if

Similar Messages

  • AFP securely from Tiger client to Leopard X Server

    I originally posted this just after New Years. I'm hoping now that more people are back from vacation that I can get an answer. Please help!
    We recently upgraded our X Server to Leopard. We can't seem to determine how to transfer files securely over AFP from a Tiger client machine to the X Server. Has anyone figured out how to do this?

    I suggest posting to the Server Products forums.

  • Firefox 3.6 not compatible with home directories stored on AFP file server

    I just wanted to let everyone know that I have discovered, at least in my situation, that Firefox 3.6 does not work with user home directories stored on AFP file servers.
    My network consists of PPC 10.411 clients and a Mac OS X 10.62 server. User home directories are stored on the server, the user is logged into a "Golden Triangle" LDAP domain, where the Mac clients bind to a OSX Server and the OSX Server is a member of the Active Directory domain.
    Worked perfectly fine on Firefox 3.57, now in 3.6 it will either not launch, will freeze with the beachball or will only show the Firefox window and not the main web browser.
    This has happened before with a 3.0x update from a few months ago. I have posted a bug in the Bugzilla database and have outlined the bug on my personal MacPCSMB blog.
    http://www.macpcsmb.com
    https://bugzilla.mozilla.org/show_bug.cgi?id=542306
    Thanks
    Michael Yockey
    IT Administrator
    Yockey, Yockey and Schliem PC

    There is an update on the FireFox hosted AFP issue that I have uncovered:
    When users are rolled back with Firefox 3.57 (by installing FF 3.57 over 43.6) the following issue occurs:
    You launch Firefox and you get an error that states "XML scripting is not working; Firefox cannot open the window".
    This basically means that the plug-ins for Firefox 3.6 are still in the user's Firefox profile directory. These new plug-ins are not compatible with Firefox 3.57. You will have to manually go into the user's home directory and remove their profile folder and extract a specific file. The issue is that the user will have to be able to have access to their bookmarks. If you delete the profile folder their bookmarks are gone, though that is simpler to do.
    It looks like Mozilla significantly changed the profile folder setup in FF 3.6, so a profile rollback or deletion is necessary.
    If you DO NOT have a good backup:
    To solve this issue do the following. This guide assumes you have the users home directory stored on an AFP server and you have open directory logins:
    1. The Firefox profile is located here according to Mozilla: http://support.mozilla.com/en-US/kb/Profiles . The Mac OS X Directory is located at /~username/library/application support/Firefox.
    2. Find and COPY the places.sqlite file. This is the Firefox bookmarks and history database. This file is very important to back up.
    3. Now take the user's Firefox profile and TRASH it.
    4. Now either have the user launch Firefox with their Open Directory login, or change their password and login yourself. Open Firefox and then after it full loads quit the program. Copy the places.sqlite file back into the Firefox profile folder. You will have to do this manually for every user unless if you make an AppleScript to take care of this.
    5. The program will now work again.
    The second option is to go into Retrospect or Time Machine (or whatever backup solution you use) and restore the user's profile direct to a point in time before Firefox was updated to 3.6 and then subsequently reverted back to 3.57. How to use backup software is way beyond the scope of this blog posting.
    Thanks
    Mike Yockey
    www.MacPCSMB.com

  • AD accounts can no longer connect to Lion AFP File Shares

    I am running into an issue where AD users can no longer connect to AFP file shares. If you attempt to authenticate with one of our Lion server's local accounts, you connect without any issues, but if you put network credentials in then you get the window shake denial. This issue just came up this morning. I attempted unbinding and rebinding the machine, updating from 10.7.2 to 10.7.3, removing and re-adding share point permissions, turning file sharing off then on, and still no network account authentication.
    Anyone have any advice for how to get network credential authentication to AFP filesharing working again?

    You could enable the AFP server access log:
    sudo serveradmin settings afp:activityLog=yes
    and then look at log at /Library/Logs/AppleFileService/AppleFileServiceAccess.log
    to see if that offers any clues.

  • NO OPT record in AFP file

    My application identify payments and amount to pay to different parties. In some cases, a party may receive more than one payment.
    The payment data is sent to our banking system. The banking system assign cheque number and generate cheque image in AFP format to send to the print vendor.
    Currently, all cheques return to us and we put them in the envelop, either one cheque per envelop or multi-cheque per envelop.
    In the new process, we'd identify the cheques that should be mailed in a single envelop.
    The print vendor suggested to create a NO OPT record before the payment record(s) to identify the envelop requirement.
    I expect our banking system to create the AFP file, and at the same time, create the NO OPT record based on specification we provide to them. But the banking system folks are reluctant to make any changes to their system to create the NO OPT record.
    I have no problem creating the NO OPT record. My questions are:
    1) can I send the NO OPT records and the payment records in one file to the banking system ? The banking system will generate AFP record for the payments and maintain the NO OPT records in the relative position?
    2) If the banking system cannot accept NO OPT records in the file, can I add NO OPT records to the AFP file (ie. after the cheque image is generated), assuming there is a way to recognize the cheque information when it is in AFP format (e.g. policy number, address) ?
    This is the first time I deal with AFP file. I'd appreciate any information related to the process I described about.

    My application identify payments and amount to pay to different parties. In some cases, a party may receive more than one payment.
    The payment data is sent to our banking system. The banking system assign cheque number and generate cheque image in AFP format to send to the print vendor.
    Currently, all cheques return to us and we put them in the envelop, either one cheque per envelop or multi-cheque per envelop.
    In the new process, we'd identify the cheques that should be mailed in a single envelop.
    The print vendor suggested to create a NO OPT record before the payment record(s) to identify the envelop requirement.
    I expect our banking system to create the AFP file, and at the same time, create the NO OPT record based on specification we provide to them. But the banking system folks are reluctant to make any changes to their system to create the NO OPT record.
    I have no problem creating the NO OPT record. My questions are:
    1) can I send the NO OPT records and the payment records in one file to the banking system ? The banking system will generate AFP record for the payments and maintain the NO OPT records in the relative position?
    2) If the banking system cannot accept NO OPT records in the file, can I add NO OPT records to the AFP file (ie. after the cheque image is generated), assuming there is a way to recognize the cheque information when it is in AFP format (e.g. policy number, address) ?
    This is the first time I deal with AFP file. I'd appreciate any information related to the process I described about.

  • Lion will not allow AFP file sharing

    After upgrading my iMac to Lion, I tried to turn on File Sharing, but it would not allow it - I'd check the box, it would refuse the check.  I had to go in to Options and check SMB Sharing to get File Sharing to work.  However, I'd like to use AFP file sharing, not SMB.  I still cannot turn on AFP sharing - I check the box, it unchecks itself in 1/2 a second.
    My Macbook Pro was upgraded a couple months ago, and it does not have this issue.  What am I missing? 

    I had this same problem so I opened the console application and viewed all messages.  Then I tried to check the File Sharing checkbox and noticed that two new entries showed up.
    3/31/12 9:21:05.415 PM com.apple.coreservicesd: launch_msg(): Socket is not connected
    3/31/12 9:21:05.645 PM com.apple.coreservicesd: bind(): Address already in use
    Each time I tried to check the checkbox, I received the same messages.  I could of done more detective work but Address already in use may be some kind of memory leak issue or something so I simply rebooted my Mac Pro and then I was able to check the box and it stuck this time.  Also, I was able to share my file like I intended.

  • How to secure AFP file transfers

    Howdy,
    I read that AFP file transfers are not encrypted. The name/password is sent in encrypted form but any data transferred is not. I'd like to know if 1. this is correct and if so 2. how do I encrypt AFP traffic?
    This is for online use, someone connecting to me with afp://myipaddress all Macs on latest OS X.
    Jay

    Alright, after everything I've read and speaking with Apple enterprise support it's confirmed that AFP is indeed insecure and not a protocol you want to expose to the world. Using VPN is the only way to secure AFP file transfers so I'll start messing around with that.

  • Unable to connect macs with afp file sharing

    I am suddenly unable to connect my MacBook Pro to my Mini using afp file sharing. I've done this successfully many times in the past, most recently about three weeks ago.
    After using Go -> Connect to Server and picking the previously used Favourite Server entry, I get the Connecting to Server window, then after about a minute I get a pop up that says:
    Connection failed
    The server may not exist or it is not operational at this time. Check the server name or IP address and your network connection and try again.
    Then the Finder icon jumps about and in the Connecting to Server window the message is:
    The Finder cannot complete the operation because some data in "afp://aragorn" could not be read or written. (Error code -36)
    Both machines are connected by Cat-6 cable to the same router, File Sharing is enabled on both machines, and Airport is switched off. I can ping each machine from the other, and both otherwise work fine. I've also tried connecting using the IP address instead of the machine name, with the same result. I've even tried another router, with the same result.
    Anyone seen this before?
    thanks in advance,
    I.B.

    Thanks, j.v., for your reply. It's very strange, this.
    I tried your suggestion, but to no avail. The destination machine is visible using ⇧⌘K and under 'Shared' in the sidebar of the Finder window, but selecting it from either place didn't work.
    However, after the connection attempts failed, I tried clicking on the 'Connect as' button in the Finder window, and after a bit I got the login credentials window. It allowed me to log in, then connected with the access I was after.
    I guess it must be some sort of access permissions issue, but it's quite odd that it only just started happening as I move files between these two machines frequently, and never had any problems before. The 'error code 36' message is completely useless for troubleshooting...

  • Access time machine backup files using Tiger (OS10.4.11)

    My G5 with leopard installed is under repair and I am using my old iBook which can not run Leopard so I am on tiger 10.4.11. I wanted to access back up files on my external hard drive (backed up with time machine) but when I enter the back up files they all are aliases and have no data attached. I know the data are there by the memory taken up on the external hard drive. How can I access my files using Tiger - surely it can be done. Where are the real files? If anyone knows how please let me know. Thanks.

    I have done as you suggested and clicked on the show original but I get this message " The volume cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again." I have the external disk already connected as that is what I am trying to recover the file from i.e. where I find the aliases. Any further suggestions. Thanks

  • Embeded fonts AFP file

    Is there a way to embade the fonts in an afp file? I tried using the DownloadFonts = Yes but it still asks for the resources when opening the AFP file; is there another way to accomplish this?

    Check out the AFPRESRC utility. I believe it's available in 11.4 and higher.

  • AFP file format support

    Hi, I'm looking for information about afp file format and WebCenter Content.
    Does anybody worked with this file format using WebCenter Content? How WebCenter use the features regarding intra document indexing?
    Thanks in advance.
    Jorge

    Hi Jorge ,
    AFP file format is listed as a support one for WCC , it is seen from Configuration Manager - Options - File format . So , now depending on your requirement it could be set up for conversion or anything like that .
    Thanks,
    Srinath

  • How to read the AFP file in hex format

    hi,
    I am reading a AFP file in hexstring format.But it is out put is not perfect means it is showing output close to the real one.
    How to read the file so taht i can get exact output in hex format.
    try{         
                        File inputFile = new File( "C:\\ACode\\afpfile.afp" ) ;
                        File outputFilehex = new File ( "C:\\ACode\\Hex.txt" ) ;
                        FileInputStream inputStream = new FileInputStream( inputFile );
                        Reader in = new InputStreamReader(inputStream,"Cp1252");
                        BufferedReader readableFile = new BufferedReader( in ) ;
                        FileOutputStream outputStreamhex = new FileOutputStream( outputFilehex );
                        Writer outhex = new OutputStreamWriter(outputStreamhex);
                        BufferedWriter writableFilehex = new BufferedWriter( outhex ) ;
         int line;
         String hext=new String();
         while ((line= (readableFile.read()))!=-1)
              writableFilehex.write(Integer.toHexString(line).toUpperCase());
         } writableFilehex.close() ;
    readableFile.close() ;
    catch( IOException e ) {
         System.out.println( e.getMessage() ) ;
         

    while reading i am getting most of hex charters are same except some places like instead of taking 00 its writing 0 and instead of f8 its writing fff.
    AFP is a IBM format for printing. Somehow i will be able to read that but how to covert it back to that format and store to that file.
    by trying is just storing data in hex format only
    Writer outhex = new OutputStreamWriter(outputStreamhex,"Cp1252");
    is there anyother way to store it back to this format

  • Enable AFP File Sharing via ARD through command line?

    Anyone know how to enable AFP file sharing on a remote Leopard client using ARD? I had been sending Unix Commands to do most of my changes, but cannot figure out how to enable AFP file sharing through a unix command. I've tried running /usr/sbin/AppleFileServer but that doesn't seem to do the trick. Any ideas?

    Howdy, Space Ranger!
    I'd recommend checking out the following documentation to get filesharing going without interrupting a current user.
    Apple Remote Desktop Administrator’s Guide
    http://images.apple.com/remotedesktop/pdf/ARD3_AdminGuide.pdf
    Page 145:
    Executing a Single UNIX Command
    Using the UNIX Command window, you can send a single command to the selected
    client computers. The command is executed using the bash shell.
    To execute a single UNIX command:
    1 Select a computer list in the Remote Desktop window.
    2 Select one or more computers in the selected computer list.
    3 Choose Manage > Send UNIX Command.
    4 Type or paste the command.
    If your command is a multi-line script, enter each command on its own line. If you want
    to break up a single-line command for better readability, use a backslash (\) to begin a
    new line.
    5 Set the permissions used to execute the command.
    You can choose the currently logged-in user, or choose the name of another user on
    the client computers.
    6 Click Send.
    For information regarding Terminal commands that can be useful (this is for 10.3 and later, but the relevant command does work in 10.8):
    Mac OS X Server Command-Line Administration
    http://manuals.info.apple.com/en_US/MacOSXSrvr10.3_CommandLineAdminGuide.pdf
    Page 65:
    Commands you can use to create share points and manage AFP, NFS, Windows (SMB), and FTP services in Mac OS X Server.
    Share Points
    You can use the sharing tool to list, create, and modify share points.
    Best regards,
    Allen

  • Mac OS 9 AFP file sharing volume not visible under Mac OS 10.5

    An old blue-white PowerMac G3 running Mac OS 9.2.2 with file sharing on is not visible on the network for a MacBook Pro running Mac OS X 10.5.5. – However, a PowerBook G4 with Mac OS X 10.4.11 perfectly shows the G3.
    Connecting to the G3 works on the new MacBook Pro with OS X 10.5 if I use the server's IP-address (afp://xxx.xxx.xxx.xxx) but does not work if I use the server's name (afp://<servername>).
    All other shares on the network are visible for both the MacBook Pro running OS X 10.5 and the PowerBook G4 running OS X 10.4.
    Why does the MacBook Pro with Mac OS X 10.5.5 not show the G3?
    Why can't I connect to the G3 using its AFP name?

    I think this is because there is no AppleTalk on Leopard.
    Ah, I stand corrected........
    Go to SystemPreferences > Network
    Select your connection in the left column. Advanced > AppleTalk
    Enable AppleTalk for your connection.
    sp
    Message was edited by: brainslice

  • How to save .Numbers file on Tiger. It is so confusing

    On my MacBook Pro using Numbers I in Tiger. It is confusing . What is happening?

    Whenever you create files, it is advisable to create using relative directory structure.
    You have not explained how you are compiling your program. If you use ant to compile, you have an option to specify a relative path.
    For example you say /project/first
    and whatever files you create will start getting created under first.
    Anyway your solution lies in using relative path to your programs, rather than absolute path..
    Hope it helps

Maybe you are looking for