Open file & close folder that it's in - in one step

I want to be able to double click a file to open it and then the folder this file is in closes so that it is no longer open on my desktop. Is there a one step way to do this?

Yes.
Hold down the Option key while double-clicking the file.
This also works when opening sub-folders - the double-clicked folder will open and its enclosing folder will close.

Similar Messages

  • The URL 'filename.xml' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web

    Hi All,
    We have a form library with around 2000 InfoPath forms submitted successfully, but suddenly from the couple of weeks noticing that, the users are able to submit the form successfully without
    any issues but the referenced .xml file is physically not
    getting saved and the strange thing is it's reference(i.e. xml) is available. When we try opening the form it gives below error.<o:p></o:p>
    “InfoPath cannot open the following file ‘formpath/.xml’
    ”<o:p></o:p>
    When we try viewing the version history, it gives below error:<o:p></o:p>
    "The URL 'filename.xml' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web"<o:p></o:p>
    I have also looked at the logs but not much information. Can someone help me?
    MercuryMan

    Hi,
    According to the error message, this issue is a typically database related issue.
    1. Make sure that your Content Database in SQL is not full.
    Open SQL management studio and connect to SQL server that have your content DB.
    You can find SQL server name from "manage servers in this farm".
    Right click the content database, click Reports > Standard Reports > Disk Usage to generate a standard report.
    For your reference:
    http://social.technet.microsoft.com/Forums/en-US/178095de-7fba-482c-9be1-94e60b1906e0/sharepoint-2010-error-the-url-item-url-is-invalid-it-may-refer-to-a-nonexistent-file-or
    2. According to KB 894631, this error message will be thrown out when the content database is configured to read-only.
    Go to Central Administration > Manage Content Databases and check if it is the case. Also, recycle the application pool in case the cache was corrupted.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Can't upload file to Sharepoint "The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

    Hello,
    I do database/SharePoint upgrades for SQL and or SharePoint or moving to new servers frequently.  In a nutshell, I backup the database (run the upgrade tools if necessary), load new server and sql software and restore the db, load but
    not configure SharePoint, and add the content db that was resotred through powershell.  I have never had any big issues with this before.  This time, I have done this same procedure as there is a new domain and new server.  Server and
    SQL 2008R2 and SharePoint 2010 on both old and new servers - just new server and new domain.  I have done this twice now (as it is a virtual server) and I have the same issue.  I can't check anything in or upload anything new.  I get the error
    - The URL '<path to the file and filename>' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.  I have made sure
    that my database and log files are on a drive that has plenty of space (db is not restricted to grow).  I have made sure my database is not locked.  I have checked to see that I don't have version in my indexed columns in that library (I
    don't have any).  I have checked that my recycle bin is on in central admin.  I am not using RBS.  I have turned on verbose logging and found the following when I searched on the correlation ID from the error message - it is saying invalid
    column name extension.  I am not sure what to do at this point.  I can see there is a column in SQL called extension in the AllDocs table. Thanks.
    09/16/2014 10:41:44.84  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Name=Request (POST:http://sqlsp:80/disc/_layouts/checkin.aspx?List=%7B5219EA15-A36A-4162-A188-4B8D518D7E79%7D&FileName=%2Fdisc%2FJigs%20and%20Fixtures%2FJigs%20and%20Fixtures%2FAssembly%2F30%20Assembly%2DGeneral%2FJ30XXA50%2D00%2Easm&IsDlg=1) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:44.85  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Logging Correlation Data       xmnv Medium   Site=/ 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Database                       d0d6 High     System.Data.SqlClient.SqlException: Invalid column name 'Extension'.    
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.HasMoreResults()     at System.Data.SqlClient.SqlDataReader.NextResult()    
    at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Database                       d0d6 High     System.Data.SqlClient.SqlException: Invalid column name 'Extension'.    
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)     at System.Data.SqlClient.TdsParser.Run(RunBehavior
    runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlDataReader.HasMoreResults()     at System.Data.SqlClient.SqlDataReader.NextResult()    
    at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)     at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        8kh7 High     The URL 'Jigs and Fixtures/Jigs and Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm'
    is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        9mpn High     File exception: Microsoft.SharePoint.SPException: The URL 'Jigs and
    Fixtures/Jigs and Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web. ---> System.Runtime.InteropServices.COMException
    (0x81020030): The URL 'Jigs and Fixtures/Jigs and Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.    
    at Microsoft.SharePoint.Library.SPRequestInternalClass.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafe... 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01* w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        9mpn High     ...ArrayWriter pUniqueFieldCallback)     at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String
    bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     --- End of inner exception
    stack trace ---     at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)     at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String
    bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     at Microsoft.SharePoint.SPFile.CheckIn(String comment, SPCheckinType checkInType, Boolean
    b... 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01* w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     General                        9mpn High     ...IsMigrate, SPUser modifiedBy) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Runtime                        tkau Unexpected System.Runtime.InteropServices.COMException: The URL 'Jigs and Fixtures/Jigs and
    Fixtures/Assembly/30 Assembly-General/J30XXA50-00.asm' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.    at Microsoft.SharePoint.Library.SPRequestInternalClass.CheckInFile(String
    bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)     at Microsoft.SharePoint.Library.SPRequest.CheckInFile(String
    bstrUrl, String bstrWebRelativeUrl, Int32 iCheckinType, String bstrCheckinComment, Boolean bIsMigrate, Int32 iEditorId, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter ... 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.01* w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Runtime                        tkau Unexpected ...pUniqueFieldCallback) 88fb3615-c87c-4a7c-8e83-d63a551a9b8f
    09/16/2014 10:41:45.03  w3wp.exe (0x208C)                        0x1814 SharePoint Foundation        
     Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://sqlsp:80/disc/_layouts/checkin.aspx?List=%7B5219EA15-A36A-4162-A188-4B8D518D7E79%7D&FileName=%2Fdisc%2FJigs%20and%20Fixtures%2FJigs%20and%20Fixtures%2FAssembly%2F30%20Assembly%2DGeneral%2FJ30XXA50%2D00%2Easm&IsDlg=1)).
    Execution Time=182.518658097607 88fb3615-c87c-4a7c-8e83-d63a551a9b8f

    I have fixed it.  I did a backup of the database and log file 2 times. I also did an upgrade-spcontentdatabase command in the sharepoint powershell.  Not sure why it worked, but I had read online about upgrade issues from WSS2 to WSS3 to 2010
    and I thought maybe something did not fully get upgraded even though this has been in use for 2 years since the upgrade.

  • The URL is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

    Hi all, 
    I'm having this issue on all document libraries when editing its properties, and it is also happening when creating new sub site (when it tries to provision the homepage). This issue is happening in a site collection that was migrated from a SharePoint 2010
    environment. 
    I have investigated every single error message, and none of the search results I found on the web helped, including the issue with having multiple column names mapped to the same database name ("@tp_Editor" error below). The file exists and it
    gets added to the document library but it fails when updating it's properties. 
    Here is logs from the ULS logs related to this issue:
    <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
    SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-1739618301-713299677-2434533842-6675, AppPrincipalName= ,bstrUrl....
    Non-version conflict error in RunItemEventReceiverExProps.  Exception: Microsoft.SharePoint.SPException: The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the
    current Web. ---> System.Runtime.InteropServices.COMException: <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a
    valid file or folder that is not in the current Web.    
     at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String&
    pbstrGuid, Guid 
    Exception while assigning Document ID: The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
    Failed to get output parameter, HR: 0x80131509, Native stack:
    [Forced due to logging gap, cached @ 01/31/2014 16:45:19.56, Original Level: Verbose] Invoking EventReceiver - [Id: {0}]
    System.Data.SqlClient.SqlException (0x80131904): Parameter '@tp_Editor' was supplied multiple times.    
     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)    
     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)    
    SQL error code from last error 8143 - Parameter '@tp_Editor' was supplied multiple times.
    <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
    SPRequest.AddOrUpdateItem: UserPrincipalName=i:0).w|s-1-5-21-1739618301-713299677-2434533842-6675, AppPrincipalName= ,bstrUrl=http://
    System.Runtime.InteropServices.COMException: The URL 'test/sdfsdfsdf.docx' is invalid.  It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.   
     at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, 

    It sounds like you have an Event Receiver attached to your library that might be throwing an internal error and blocking the file from being uploaded. The following errors state that the file that SharePoint thought was uploaded actually wasn't. I would
    focus on what is happening within the event receiver.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • I can't double click in order to open file or folder

    Dear apple support team,
    I have the problem with open file or folder when using Mountain Lion, I can't open file or folder by double click in it. With Lion i can do it.
    Please advice for me, i feel use Mountain Lion is difficult.

    Are you tapping to click, or pressing down the trackpad until it clicks? If you're tapping, try pressing.

  • As I can synchronize my solution folder that is in AZURE with one folder on my desk?

    as I can synchronize my solution folder that is in AZURE with one folder on my desk?
    like the content folder of my proyect 

    Hi,
    When we deploy a solution to azure, we need to compile it first, some c# code will not be modified, so I think this request is unnecessary. If I misunderstand, and you think this is an important further request, please consider submit your voice at:
    http://feedback.azure.com/forums/34192--general-feedback. If you use azure website service, and only want to modify some code that needn't compile, you could choose WebMarticx
    online to edit it.
    Best Regards,
    Jambor 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Open files in folder and repeat

    How can i open the files in the folder  if you scroll to "--open file items of the name folder" you can see where I am struggling to run the script.
    How should this look to run, currently the script runs, with no errors or anything appearing in the folders.
    property type_list : {"PHOTOSHOP"}
    property extension_list : {"psd"}
    --Setup list of folders and process details of folders
    set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
    repeat with i from 1 to number of items in dtF
              set this_item to item i of dtF
              if this_item does not start with "2_" and this_item does not start with "Hot" and this_item does not start with "Press" then
                        try
                                  set folderPath to this_item
                                  set {oldTID, my text item delimiters} to {my text item delimiters, ":"}
                                  set folderName to last text item of folderPath
                                  set my text item delimiters to "_WK"
                                  set FolderEndName to last text item of folderName
                                  set brandName to first text item of folderName
                                  set my text item delimiters to "_PSD"
                                  set weekNumber to first text item of FolderEndName
                                  set my text item delimiters to oldTID
                                  set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
                        end try
              end if
      --set up names to destination folders and create locally based on brand name and week number
              try
                        set this_local_folder to "Hal 9000:Users:matthew:Pictures:2011-2012"
                        set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
                        set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
                        set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
                        set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
      --set up names to destination folders and create over Netwrok including an already exisiting folder
                        set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2012:"
                        set networkWeekFolder to my getFolderPath("WK" & weekNumber, this_Network_folder)
                        set networkBrandFolder to my getFolderPath(brandName, networkWeekFolder)
                        set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkBrandFolder)
                        set website_images to "DCKGEN:Website_Images:"
      --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
                        set this_ftp_folder to "Impulse:"
                        set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
                        set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
                        set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
                        set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
      --taking the folder identify which process it must follow.
    --open file items of the name folder
                        if brandName is equal to "Diva" then set filelist to (files of alias theFolder whose ¬
                                  file type is in the type_list or name extension is in the extension_list)
                        repeat with alist in filelist
                                  tell application "Finder"
                                            set thefile to aFiles as alias
                                  end tell
                                  tell application "Adobe Photoshop CS5.1"
      activate
                                            set myOptions to {class:JPEG save options, quality:12}
                                            tell front document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                      if (quick mask mode) then delete channel ¬
                                                                "Quick Mask"
                                                      delete layer "Original Image"
      flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options ¬
                                                                {amount:80, radius:3.2, threshold:0}
      save in file ((localBrandFolder_High_Res as string) & name) as JPEG with options myOptions without copying
                                                      tell application "Finder"
      duplicate last file of localBrandFolder_High_Res to ftpBrandFolder_High_Res with replacing
                                                      end tell
      --Prepare for Low RES by resetting image history
                                                      tell application "Adobe Photoshop CS5.1"
                                                                set current history state of current document to history state 3 ¬
                                                                          of current document
                                                      end tell
      resize image width 1020
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options ¬
                                                                {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in file ((localBrandFolder_Low_Res as string) & name) as JPEG with options myOptions without copying
                                                      tell application "Finder"
      duplicate last file of localBrandFolder_Low_Res to website_images with replacing
      duplicate last file of localBrandFolder_Low_Res to ftpBrandFolder_Low_Res with replacing
      duplicate last file of localBrandFolder_Low_Res to networkBrandFolder_Low_Res with replacing
                                                      end tell
      --close file
                                                      close
                                            end tell
                                  end tell
                        end repeat
              end try
    end repeat
    on getFolderPath(tName, folderPath)
              tell application "Finder" to tell folder folderPath
                        if not (exists folder tName) then
                                  return (make new folder at it with properties {name:tName}) as string
                        else
                                  return (folder tName) as string
                        end if
              end tell
    end getFolderPath

    This is how it looks.
    A few things i need to add.
    How can I save of time by not having to save to the multiple locations (i did try t using finder to duplicate last file of folder but that didn't work too well)
    Also the line where it saves to website_images in need to exclude those files that end in _2 and _3 (or files that are exactly 16 digits long).
    And finally if in photoshop it come across and error I need to skip the file and log it to a text file or just leave it open and continue.
    Also how do I have it run in the background so i can continue to use the computer?
    and finally any other way to make it run faster?
    property type_list : {"8BPS"}
    property extension_list : {"psd"}
    --Setup list of folders and process details of folders
    set dtF to paragraphs of (do shell script "ls -F ~/Desktop | grep '/' | cut -d'/' -f1")
    repeat with i from 1 to number of items in dtF
              set this_item to item i of dtF
              if this_item does not start with "2_" and this_item does not start with "Hot" and this_item does not start with "Press" then
                        set folderPath to this_item
                        set {oldTID, my text item delimiters} to {my text item delimiters, ":"}
                        set folderName to last text item of folderPath
                        set my text item delimiters to "_WK"
                        set FolderEndName to last text item of folderName
                        set brandName to first text item of folderName
                        set my text item delimiters to "_PSD"
                        set weekNumber to first text item of FolderEndName
                        set my text item delimiters to oldTID
                        set theFolder to ("Hal 9000:Users:matthew:Desktop:" & folderName)
      --set up names to destination folders and create locally based on brand name and week number
                        set this_local_folder to "Hal 9000:Users:matthew:Pictures:2011-2012"
                        set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
                        set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
                        set localBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", localBrandFolder)
                        set localBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", localBrandFolder)
      --taking the folder identify which process it must follow.
      --taking the folder identify which process it must follow.
                        set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2012:"
                        set networkWeekFolder to my getFolderPath("WK" & weekNumber, this_Network_folder)
                        set networkBrandFolder to my getFolderPath(brandName, networkWeekFolder)
                        set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkBrandFolder)
                        set website_images to "DCKGEN:Website_Images:"
      --set up names to destination folders and create over Netwrok for FTP collection (based on a mounted drive)
                        set this_ftp_folder to "Impulse:"
                        set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
                        set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
                        set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
                        set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
                        if brandName is equal to "Diva" then
                                  tell application "Finder" to set filelist to (files of alias theFolder whose file type is in the type_list or name extension is in the extension_list)
                                  repeat with thefile in filelist
                                            set thefile to thefile as string -- convert Finder item to string
      --    D   I   V   A    Folder Photoshop Process
                                            tell application "Adobe Photoshop CS5.1"
      activate
      open alias thefile
                                                      set myOptions to {class:JPEG save options, quality:12}
                                                      tell current document
      --If the quick mask mode has been left on then delete the channel Quick Mask
                                                                if (quick mask mode) then delete channel "Quick Mask"
                                                                (delete layer "Original Image") flatten
      resize image resolution 300 resample method none
      --sharpen image
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      save in (localBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
      --tell application "Finder"
      --duplicate last file to folder ftpBrandFolder_High_Res with replacing
      --end tell
      -- example : duplicate file (localBrandFolder_High_Res & name) to folder localBrandFolder_Low_Res
      --my duplicateFile(localBrandFolder_High_Res & name, localBrandFolder_Low_Res) --  use the handler to duplicate file
      --Prepare for Low RES by resetting image history
                                                                set current history state to history state 3
      flatten
                                                                resize image width 1920
      resize image resolution 300 resample method none
      filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
      --add save to lowResFolder with same options
      save in (localBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
      save in (networkBrandFolder_Low_Res) as JPEG with options myOptions without copying
      save in (ftpBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
      save in (website_images & name) as JPEG with options myOptions without copying
                                                                close
      --my duplicateFile(localBrandFolder_Low_Res & name, aFolderPath) --  use the handler to duplicate file
                                                      end tell
                                            end tell
                                  end repeat
      -- end brandName = "Diva"
                        else if brandName is equal to "another brandName 1" then
      --another code
                        else if brandName is equal to "another brandName 2" then
      --another code
                        end if
              end if
    end repeat
    on duplicateFile(tFilePath, folderPath)
              tell application "Finder"
      duplicate file tFilePath to folder folderPath with replacing
              end tell
    end duplicateFile
    on getFolderPath(tName, folderPath)
              tell application "Finder" to tell folder folderPath
                        if not (exists folder tName) then
                                  return (make new folder at it with properties {name:tName}) as string
                        else
                                  return (folder tName) as string
                        end if
              end tell
    end getFolderPath

  • Can't open files in folder on desktop

    Have pictures in a folder under another folder on the user desktop.  The user can't open the files, get an error of no permissions.  GetInfo and ls -al from command line give same result, user has full permissions.  Any idea what's going on?

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    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'll be prompted for your login password. Nothing will be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • Can't open files in folder shortcuts

    Folder shortcuts simply appear as foldername.lnk in the Open file window. Anyone know a workaround?

    Folder shortcuts simply appear as foldername.lnk in the Open file window. Anyone know a workaround?

  • Find files in folder that are 1920 by 1200

    I have a folder full of a ton of jpeg's that i want to move all the ones that are 1920 by 1200 over to another folder. Is there an automator action or a program that can do this for me?

    Just to clarify a bit-
    You need to look in the Finder's Find window (Cmd-F)
    Click on one of the criteria buttons (Kind or Last Modified)
    Choose 'Other...'
    Then scroll down in the window that appears and pick either 'Pixel Height' or 'Pixel Width'
    (Resolution is for DPI based searches)
    If you start the search from the folder that contains all these images, you'll be able to select it in the locations bar just above the criteria buttons. Once you enter the criteria and the search finishes, you can just Select All (Cmd-A) and move the files to wherever you want to put them.

  • Opening files in apps that created them

    OSX drives me nuts. Preview is the default for opening files, and when I follow the instructions for "changing all" so all my Photoshop files open in Photoshop, Word in Word, etc., it won't let me do it...it defaults back to Preview!
    So, what can I do to have ALL my files open in the application that created them when I double-click on them, whether they are Classic apps or OSX apps?
    THANKS!
    Paul

    Preview is not the default for opening all files. Each application uses a unique way of identifying its document file - an extension. Word uses ".doc", for example. If you don't make any changes to the default application used the correct application will open when you double-click the document file.
    You can gain more extensive control over file associations by installing the freeware RCDefaultApp (www.versiontracker.com or www.macupdate.com.)
    Perhaps your system needs a bit of maintenance:
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.0 is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.2 is Intel Mac compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. The current version, 1.5.1, is Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. PsynchX 2.1.1 and RsyncX 2.1 (Freeware)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Open file in folder

    I have a filter set up where, it sends a torrent file to a certain foler with Pulp Fiction. I need an applescript that will open that added file(s) once it is added. Can someone help me out?

    If I read your post correctly, you want to open any files that are added to this folder, correct?
    If so, the following Folder Action script will open any files added:
    on adding folder items to this_folder after receiving these_items
        repeat with each_item in these_items
            tell application "Finder" to open each_item
        end repeat
    end adding folder items to
    Save it as a compiled script in /Library/Scripts/Folder Action Scripts using whatever name you like.
    Then you can crtl-click on the folder in question and Attach a Folder Action.
    Each time a file is added to the folder, the script will run and open the files.
    You might want to add additional checks to make sure that only certain file types are opened.

  • Open file in folder with command line program

    I have a file, which is in native format for a given program [1] I have installed. This program I can start from Terminal.app and within the program I can open the file. The question is if I can have associated with this specific filetype this program and when I double click on a file of this type I can have a Terminal.app opened with my program running inside opening the file for me.
    Btw, on a regular Linux/Unix I would just associate this filetype with the path to my program. On Mac I can associate only with .app.. Is there other way?
    [1] http://root.cern.ch/drupal/

    I do not fully understand your question.
    You need to make your program into an application. I have not programmed on Mac OS so I to not know the details. You could hack some existing app. I do know that the plist file for an app points to the starting program.
    Another work around would be to write an apple script file to call your program.
    This applescript invokes a unix program.
       Run in the Script Editor.
       Click on the Event Log tab to see the output from the log statement
       Click on Run
       For running shell commands see:
       http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
       -- Write a message into the event log.
       log "  --- Starting on " & ((current date) as string) & " --- "
       -- ask the user for the folder name.
       -- quoted form of (POSIX path of (choose folder))
       set theFolder to "/Applications/Utilities/Disk Utility.app"
       set theFolder to quoted form of theFolder
       log "quoted form is " & theFolder
       -- running two Unix commands. Separate with a semicolon 
       set fromUnix to do shell script "cd " & theFolder & "; ls -ld ."
       log fromUnix
       display dialog fromUnix giving up after 30
    end run
    This applescript program received a file dropped on it.
    There is a lot of extra stuff but look at on open dropped_items This line gets a list of files dropped on the applescript. Your have to change the name format.
    on open dropped_items
       -- Remember you need to turn on enable assistive devices
       -- this lets applications software to access screen elements
       -- blue apple > system perferences > universal access > enable assistive devices
       -- Write a message into the event log.
       log "  --- Starting on " & ((current date) as string) & " --- "
       -- set see to alias "Macintosh-HD:Users:mac:Desktop:app.html"
       -- set dropped_items to {see}
       set the_app to "Safari"
       repeat with dropped_item_ref in dropped_items
          --set UrlBase to "xzzx FILE://" & POSIX path of dropped_item_ref
          --display dialog UrlBase
          -- Activate
          activate application the_app
          -- Open the URL 
          tell application the_app
             open dropped_item_ref
             -- print dropped_item_ref
             tell application "System Events"
                tell process the_app
                   delay 3
                   -- click menu item "Print..." of menu "File" of menu bar 1
                   keystroke "p" using command down
                   delay 1
                   keystroke return
                   delay 10
                   keystroke "w" using command down
                end tell
             end tell
             --quit
          end tell
       end repeat
    end open

  • Script open IE, press "okay" on cert selection, "open" file, close IE window

    Im trying to create a script to Open an internet explorer window to a link, which i've worked out. But then i need it to click "OKAY" when a windows security certificate pops
    up, then click "open" when it asks to download the file (link points to a file, rather than a page), and then close the IE instance that it had just opened. Im unsure if the "open" with the file download works, as i cannot get past the
    cert slection beforehand.
    Open IE link:
    $IE = New-Object -comObject InternetExplorer.Application.1 ; $IE.visible = $True
    $IE.Navigate("https://website.com/file.exe")
    I've also found this code that will press okay for the certificate selection if i know the button ID, but i can't seem to find the button ID for the cert selection window:
    while ($IE.busy) {
    sleep -milliseconds 50
    sleep -milliseconds 500
    $doc = $IE.document
    sleep -milliseconds 500
    $btn = $doc.getElementByID("button ID you can see in the source of the page")
    $btn.Click()
    Click "open" on the file download:
    Select-Window iexplore | Select-Control -Class "Frame Notification Bar" | Send-Keys "%S"
    Close IE window. This currently closes all IE instances, is there a way to just close the one it had opened to begin with?
    Get-Process iexplore | Foreach-Object { $_.CloseMainWindow() }
    

    Close IE window. This currently closes all IE instances, is there a way to just close the one it had opened to begin with?
    Get-Process iexplore | Foreach-Object { $_.CloseMainWindow() }
    $IE.Quit() will do that.

  • Getting file or folder that contain my jar

    Is there any way to get packeg that contain gif file first get golder in list box and then if we click on it it open image one by one.

    Hi,
    According to the error message, this issue is a typically database related issue.
    1. Make sure that your Content Database in SQL is not full.
    Open SQL management studio and connect to SQL server that have your content DB.
    You can find SQL server name from "manage servers in this farm".
    Right click the content database, click Reports > Standard Reports > Disk Usage to generate a standard report.
    For your reference:
    http://social.technet.microsoft.com/Forums/en-US/178095de-7fba-482c-9be1-94e60b1906e0/sharepoint-2010-error-the-url-item-url-is-invalid-it-may-refer-to-a-nonexistent-file-or
    2. According to KB 894631, this error message will be thrown out when the content database is configured to read-only.
    Go to Central Administration > Manage Content Databases and check if it is the case. Also, recycle the application pool in case the cache was corrupted.
    Thanks.
    Tracy Cai
    TechNet Community Support

Maybe you are looking for

  • Itunes won't recognize my new ipod

    I gave my cousin a new 3rd gen nano. Itunes is fine but the device simply shows an ipod and brings up the agreement. the choice is 'save' or 'cancel.' cancel does nothing and save sends me to a save as a doc. i've updated both itunes and ipod softwar

  • Adobe Exchange in Photoshop

    I just downloaded three products in the Adobe Exchange and two of them I paid for. The free one works, but when I start photoshop the exchange panel tells me there is an error loading and to check my internet connection (which is fine)... the one fre

  • FIXED FIELD LENGTH is not constant

    Hello Guru's,     This is the question asked in IBM . What will you do if field length of a field in flat file is not constant or not equal to the FIXED FILED LENGTH ?. i.e. f1 is of length is 10 and in one row its length is only 9 what will happen a

  • LR 1.2 Import Function - Shows Previously Imported Directories

    I have 40,000 pictures I am trying to import into lightroom. I have 1500 left to go. The process I used has been: 1. File:Import Photos from Disk 2. I then select the main directory that has every photo I have taken or scanned. The directory structur

  • Profit Center Wise Profit and Loss and Balancesheet.

    Hi, Can anyone tell me how to derive the profit and loss account and balancesheet profit center wise.