Photoshop replacing home directory with tilde~

whenever I run an app.activeDocument.fullName (or app.activeDocument.path), it repalces the home directory with a tilde(~), so
"Macintosh HD/Users/myname/Desktop/filename.psd"
becomes just
"~/Desktop/filename.psd"
can anyone think of a way to get what's behind that tilde and get the FULL PATH of the file??
THANK YOU

$.writeln(app.activeDocument.path.fsName+'/'+app.activeDocument.name);
Paul, beat me & it's better…

Similar Messages

  • How to use smb share for home directory with AD account

    I have extended the schema of our AD and bound a macbook pro running 10.6.8 to the domain. AD users are able to logon, and if I select the option to use their AD homedirectory attribute then this smb share is used as a network drive. My question is though, I need users to logon to MAC using a different smb share for their home drive than the path set in the home directory attribute. Does anyone know how I can achieve this?
    Cheers
    Paul.

    But this method cannot use Regular Expression because my searching target is more than one line.Yes it can!
    Like you said, first you list all the files in the folder.
    For each file, use a BufferedReader to read the first lines, then you may use a StringBuffer to append the lines into it (don't forget to append the '\n' to each line).
    Finally, compile your pattern ( "^November.*\nDecember" ) with the DOTALL flag,
    verify that the string (from StringBuffer) matches the pattern and there you have it!

  • [SOLVED]cannot share folder in home directory with SAMBA

    My problem is relatively small as I can use a workaround but I would like to be able to discern whether or not my troubles  stem from a bug or my own incompetence. 
    Basically it seems I can share just about anything I want EXCEPT for a file or folder in my home directory.  I  have two primary users on my box, root & dunce, and what I am unable to do is share "/home/dunce/shared".  I've tried quite a few different configs based on what I could find online but nothing works.  Initially I followed the SAMBA instrucions on the Arch Wiki and that was fine for other items I wanted to share.  I feel like I'm kinda'   makin' a mountain out of a molehill here but I would really like to understand WHY I can't share from "/home/dunce/shared".  I really don't think it's a problem in smb.conf but then again . . .  Any insight would be greatly appreciated.
    Last edited by Captain Dunce (2011-01-24 07:11:06)

    The option browseable if not defined is per default set to yes.
    Excerpt from The definitive guide to samba 3
    browseable: This parameter determines whether a share appears in browse lists on clients. The default value of YES causes a share to appear and is usually appropriate. You can hide a share by setting this parameter to NO; however, be aware that this setting doesn't make a share unavailable, only hidden from casual browsing.
    Another thing I stumbled upon is that samba can get confused if security=share is used. It will try different usernames until it finds one that can be used, or will deny access if none can be used. The following list is the order it tries to access the share:
    Guest, Client provided username, Prior login, Share name, Client name, User list (if defined).
    You can try to set
    guest ok = yes
    and see if that changes the behaviour. You will need
    guest account = nobody
    or something similar in you global configuration to make this work.
    Whatever user you set as guest need to exist in the samba database. And must be a existing linux username as well.
    Another option is to set the guest account in the share definition and only allow guest access.
    [share]
    path = /home/dunce/sharefolder
    browseable = yes
    writable = yes
    guest account = dunce
    guest ok = yes
    guest only = yes
    Again the username (dunce) need to exist in the samba database. Depending on your setup this can be set with the command pdbedit.
    There is a samba book available online from O'Reilly. It is a bit dated, but the info on shares should still be valid. I think chapter 6 is especially interesting for you in your scenario.
    http://oreilly.com/catalog/samba/chapte … index.html

  • Replacing Home Space with a specific Group Space.

    Hi,
    We have a Webcenter Spaces 11.8 environment.
    We are trying to completely bypass the home space and take the user to a specific space.
    While this is possible to do it through the initial redirection based on application/enterprise role, some re-directions are causing the user to land in the home space.
    Also, the user can get to the home space pages by typing in the url. We want to restrict the user from viewing the home space altogether and replace it completely with our group space.
    Approach1 : Page Links -
    We tried to bring in pages from the group space into the home space navigation model as page links. Even if the group space is public, we cannot link to its pages as we cannot see the pages in the page link popup. Only home space pages are shown. Is this expected? How do we bring in pages from a specific group space into the home page navigation?
    Approach 2: Group Space Pages Query -
    We can bring all the pages from the "Default Navigation Model" of the group space into the home space navigation model. However, the landing page upon login needs to be a visible page in the home space. How do we get the user redirected to a specific page in a group space and make that node as selected once the user logs in.
    Thanks in advance.

    Hi,
    Check this code.
    data : role(10) type c value 'crick ter',
           role1(10) type c,
           role2(10) type c.
    write: / role.
    SPLIT role AT space INTO role1 role2.
    concatenate role1 role2 into role separated by '_'.
    write: / role.
    <REMOVED BY MODERATOR>
    Regards.
    Edited by: Alvaro Tejada Galindo on Mar 10, 2008 7:25 PM

  • Portable Home Directory WITH a Windows Server/AD and WITHOUT OSX Server/OD

    Hi All,
    I'm pushing the envelope here a bit, but here's the situation:
    - Windows 2003 AD Servers
    - Windows 2003 Home Directory File Server
    - MacOS X 10.5.2 client (on an Intel iMac)
    Everything works fine (once you add the AD server's IP/domain name into /etc/hosts and remove the dashes from the name of the client you're trying to join anyway). I can login, logout, run all the Apps I need. Get fine throughput from the server.
    The problem comes when I try to turn on Portable Home Directories (Mobile Accounts) for users of the client. I believe the client is trying to use "Server Side File Tracking for Mobile Home Sync", and so is trying to SSH into the Windows machine. This, perhaps unsurprisingly, is not working.
    Is there any way to turn this off without using Open Directory (even there it seems to be part of Server Admin General Prefs and not Managed Preferences)?

    Portable Homes work just fine with non-Apple servers. It just that you will not get the performance improvements of 10.5 server's "Server Side File Tracking for Mobile Home Sync".
    If Portable Homes are not working for you file a bug with Apple.

  • File Vault on HOme Directory with encrypted disk image in it

    I want to try File Vault. My question is as follows: I have an encrypted disk image already in my home folder. It is a small 500 MB one. Can I keep that in there, as is, without problems, or is File Vault going to encrypt and encrypted image and cause some sort of problem?
    Has anyone done this without issues?
    I know the alternative is to unencrypt my current image and let File Vault handle the encryption, but I am curious about leaving it alone and trying File Vault.
    Thanks for any help,
    x-.-x

    x-.-x wrote:
    I want to try File Vault.
    Good luck!
    File Vault going to encrypt and encrypted image and cause some sort of problem?
    FileVault is no more likely to scramble an encrypted disk image than it is to scramble the rest of your files. However, it is quite likely that it will scramble all of your files.
    Has anyone done this without issues?
    I have read many postings here in the discussion forums by people who have used FileVault and lost all of their data. Your mileage may vary. The only way I would use FileVault would be if I had an unencrypted copy of everything somewhere safe. Like you, I keep a small encrypted disk image for particularly sensitive files.

  • Create Home Directory in NetWare with the OIM 9.1

    I am trying to find out if there is a way to create a NetWare User home directory with OIM 9.1 and the eDirectory Connector?
    Edited by: user11137756 on May 6, 2009 11:42 AM

    I'm confused. It looks like you already have /home configured:
    <pre># zpool status
    pool: home
    state: ONLINE
    scan: none requested
    config:
    NAME STATE READ WRITE CKSUM
    home ONLINE 0 0 0
    c4t3d0 ONLINE 0 0 0
    errors: No known data errors
    # zfs list
    NAME USED AVAIL REFER MOUNTPOINT
    home 86K 134G 32K /home
    ...</pre>
    What is the problem? Looks like you already have /home configured. Are you sure automounter is not running?
    Try this:
    <pre>zfs set mountpoint=none home
    rm -rf /home
    zfs set mountpoint=/home home</pre>

  • Home directory is shown as package

    Hi,
    a few days ago I copied the .hdd directory of a parallels installation into my home directory. but i made a little mistake and copied the content of the folder into my home dir. i deleted the files again and copied now the folder.
    after clicking afterwards to my home dir in the finder - only the Terminal opened with a shell.
    so currently there is no way to open my home directory with the finder.
    all other directories I can open - even directories in my homedir.
    I did some research, but I don't really get a clue due to my not existing knowledge about mac os x.
    hardware: macbookpro from previous year
    os: max os x 10.8.2 -- latest patch
    ### one program i found during research shows that my homedir is a package.
    MacBook-Pro-3:~ uwe$ mdls -name kMDItemContentType .
    kMDItemContentType = "com.apple.package"
    ### the file (unix standard program) comand shows that this is a directory
    MacBook-Pro-3:~ uwe$ file .
    .: directory
    ### see - this is my home dir
    MacBook-Pro-3:~ uwe$ pwd
    /Users/uwe
    ### also ls shows that this is a directory
    MacBook-Pro-3:~ uwe$ ls -lad .
    drwxr-xr-x@ 41 uwe  staff  1394 Feb  8 21:07 .
    So how do I convince the mac os that this is a directory not a package.
    please keep in mind that I don't know much about mac os x. but I very familiar with unix systems - so I'm not afraid of the command line.
    every help is welcome.
    thanks,
    Uwe

    Back up all data.
    Triple-click anywhere in the line below to select it:
    xattr -d com.apple.FinderInfo ~
    Copy the selected text to the Clipboard (command-C).
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You can then quit Terminal.
    Relaunch the Finder, or log out and log back in.

  • Single Student home directory for Multiple users

    Hi all,
    I'm currently working in an education environment and we have 4x labs of mac's. Currently, when students log in, their login info/permissions are pulled from AD and OD. When they login for the first time, it creates a local home directory with their username, so when they login subsequent times they still get all their saved movies, music and pictures. Nothing special.
    We are aiming to change over to a new system in which the students login with thier username/pass, but they all use the same local home directory called 'student' (which will actually be refreshing with the default-homedir-refresh script by Bombich). To compliment this, as they will not be able to use thier movies folder, we will have a seperate partition on the computer in which they save all thier work. Idealy, we would like the files that one user saves not to be accessable (deleted) by another student, but i'm not sure if this is possible even though they have logged in using different username/passwords, as they are all using the same directory. To add to this, the users will also have thier network space mounted on login (as its on a novell server, currently we mount it by specifying the address in WGM under preferences->login items, with Mount item with user's name and password checked).
    My questions are
    1) how do we get the students to use the single 'student' home directory?
    2) If we have a separate partition set up for them, will the files they create have the permissions assigned to the individual users or will they all be able to access each others file as they will use the single 'student' home directory.
    3) Will our method of mounting their Novell drive still work with the new system?

    I can't help asking: Why?
    Might help if we knew exactly what sort of issues you are trying to avoid, since you're moving away from what appears to be a perfectly functional setup

  • MacOS keep open file in home directory

    I don't know if I've changed anything but my Mac keeps open every files written in the HOME directory with the default editor. Any idea to modify this behavior? I'm using Mac OS X 10.6
    Thank you in advance.

    Never mind. I was able to fix it. Just delete every thing from ~/Library/Preferences (or move all files to another location and then move them back if you don't want to lose your settings).

  • IMovie temporary files; importing fails on network home directory

    Hi all,
    I work in a laboratory and manage a bunch of Macs. We have a 2x2.5GHZ G5 with 4G of memory and iMovie 6. The mac has two 300 GB disks that are in a concatenated raid group, so the system has about 450GB of free disk.
    The mac is bound to an Open Directory server and users have network home directories. (The network file system happens to be AFS, which is probably unusual)
    The problem I am having is that whenever I am importing a clip from any external source (in this case I have tried a Sony GL-2 and an external DV deck), after about 13 minutes of importing, imovie stops importing, and iMovie displays the blue screen that you get when a video source is connected but not playing... but, the camera is clearly still playing, if I look in the viewfinder. this failure mode is completely reproducible, and always fails at the exact same place. (but works fine on another mac, see below)
    I have tried saving the iMovie project onto both local disk and into the networked home directory, with the same results in either case.
    I've tried the same setup on an identical mac that is not using networked home directories (local only), which works fine. I suspect that the problem has to do with the way the network file system caches/buffers, but I have no idea where iMovie keeps its housekeeping/temporary files. I was under the impression that it is all kept in the project directory, wherever you happen to create it. Are there some files that get written to the home directory no matter where you save the project?
    mjp
    2x 2.5 GHz G5 PowerMac 4GB RAM   Mac OS X (10.4.6)  

    iMovie doesn't have temporary files. All files are kept in the project folder (or "package").
    iMovie: How to Save Projects to Another Hard Disk
    http://docs.info.apple.com/article.html?artnum=93296
    See "Important Considerations" at the bottom.

  • Not able to remove 'emtpy home' directory entry

    Hi
    I'm trying to remove an Oracle 10.2.0.1.0 installation on a Linux system. My problem is, that I'm not able to remove an 'empty home' directory with the installer. The button 'Remove..' is grayed out.
    The reason why I want to remove that directory is, that I want to do an installation into this directory again. But the requirements check of the installation fails because of this 'empty home' directory (which is actually deleted on the file system).
    Does someone know where this information is stored on the filesystem or how I can force the installer to install in this directory anyway? BTW: I have also a 9.2 installation on the same system, but that's probably no problem.
    Thanks!

    Has this database been upgraded via the patch process? If so, run the installer from the patch directory, you can often get to the uninstall from there. It all has to do with oracle inventory and what it sees as your most recent install. After you have done the uninstall/remove, you can just go delete the directory and remaining contents -- there will not be much left.

  • Create home directory using powershell

    Hi Experts -
    Currently AD 11.1.1.5 is deployed. The home directory is been prepopulated at the time of creation of AD account, and there is a custom task called updatehomedir which gets triggered on success response of create user.
    The problem is, the customer has 40 domain controllers and if I use the OOTB process tasks, it fails to find the user and gives me an invalid structure error, meaning it is not able to find the user. So when the first request goes for creating the user, it picks up a random domain controller and if the home directory parameter is been sent in the creation request it fails. so, the post user creation task works fine.
    The Ad connector creates the home directory with the full permissions to the user on that folder, and also it clears out all the existing permissions. By that, it does not inherits the container permissions. SR said, that it is an ER.
    How do I implement it.
    The approach that looks feasible is
    1. Change the provision attribute mapping for homeDirectory to say customHomeDirectory
    2. Disable the home directory update task
    3. Call a powershell after creation action
    4. In that powershell get the process form value, and run the creation of home directory with appropirate permissions.
    And I cannot test it, as the only environment where i have folders is production...
    -Thanks
    Kunal Jain

    After some decompilation I found this
    DirectorySecurity dirSecurity = new DirectorySecurity();
    PropertyValueCollection pvc = directoryEntry.Properties[ActiveDirectoryConnector.ATT_OBJECT_SID];
    SecurityIdentifier sid = new SecurityIdentifier((byte[])pvc[0], 0);
    dirSecurity.AddAccessRule(new FileSystemAccessRule(sid, FileSystemRights.FullControl, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow));
    Directory.CreateDirectory(directoryName, dirSecurity);
    Does this strip of the permissions of the file admins on the container. that is inheriting is not done????

  • Stop sharing home directory

    Hi,
    my intention is to share a folderA to a windows 7 computer, only this folder. I've created a standard userA in mac and I've enabled it to share files with smb and then I've removed it's public folder and added the folderA that I want to share. I can access this user from the windows box without problems and I can read and write to the folderA without problems but it also shares the folder userA, ie, it's home directory with it's desktop, documents,images, etc inside that I don't won't to see. How can I stop sharing it's home directory if the home directory is not listed in the Shared Folders list????.

    You may have to revert to a more standard method of sharing
    items in a Public folder, between a Mac & PC or Mac to Mac.
    Then there would be no user's Home directory involved.
    The way you appear to have it now, some of the intended
    security measures of the OS X could be easily exploited.
    Hopefully someone with more +inside information+ will reply.
    Good luck & happy computing!

  • Home Directory not mounted in Active Directory environment

    I am trying to integrate a PowerMac G5 with Leopard 10.5.2 into an Active Directory. The Mac is bound to the AD without any problems. I can authenticate with my AD account and I also see the printers. However, I have problems using the network home directories.
    If I activate "Force local home directory on startup disk" everything works as expected: The user logs in and gets a local home directory under /Users and can mount its network home directory with the finder without the need to authenticate again, so the single-sign-on works.
    However, that's not what I want - I want the user to work solely in his networked home directory, not on the local disk. So I deactivate the button "Force local home directory on startup disk", but now the mount of the home directory fails. In the system.log I see the following:
    /usr/libexec/mount_url[123]: smb_mount: open session failed!: syserr = Broken pipe
    This is printed several times. If I try to access to automounted home directory under /Network/Servers/SERVER/USER in the terminal I also get "Broken pipe".
    The strange thing: I can access the home directory with smbclient, I can also mount it with mount_smbfs, but if I try it with /usr/libexec/mount_url it fails although I use the exact same server and user directory.
    Any ideas are greatly appreciated.

    We have a similar issue here. Only the first AD User after reboot can login and the second one gets the same error as you. (see also: http://discussions.apple.com/thread.jspa?messageID=6418268)
    It looks like there is a problem with the automounter. I set the AUTOMOUNT_TIMEOUT to 60 seconds in /etc/autofs.conf, then after logout of the first user and waiting for 1 minute, the second user can log in.

Maybe you are looking for

  • Can I move my iTunes library from a Mac to a PC? (iOS to Windows 7)?

    Hi everyone, I currently have an 24" iMac, but I'll be traveling overseas and I'd rather not have a MBP (I know, right?!). I am planning to get a Sony laptop.  Is it possible to move my iTunes library over? Please let me know! =D My iTunes library is

  • Hard drive issues..help

    Hi, I replaced my original drive back in november 2009 with a western digital scorpio black..the thing just died on me. Wasn't making any noises as i've experienced in the past so I tried doing disk utility via snow leopard's install disk. The disk (

  • Class not found in web-inf/classes folder of war file within ear file

    Hi all,           I am using Weblogic 8.1 sp4. I have a war file within an ear file. I am trying to deploy the war file with a few classes within its web-inf/classes folder, however when the classes are in that folder I consistently get a class not f

  • How to pass username dynamically  in siebel on demand weblink

    Hi , I am passing SSO Token(like %%%SSO Token%%%) in siebel on demand weblink url to enable single sign on and authenticate our application.After getting SSO token value, i am validating the SSO Token Value by using a siebel callback url. Siebel serv

  • Variant problem for 2 ALVs

    hi i have 2 alv's in 1 screen. if i save a layout variant in one of the ALVs, the same shud be applied to 2nd alv also and the screen shud refresh & display with the new variant. how can i do this? tx kiran