Filter the files 'alias '.

Hello fellow developers,.

is it possible to discern whether a file is an alias on the Mac? As:

var fList = Folder("~/Desktop/TEMP").getFiles();
$.writeln(fList.toSource());
// [new File ("~/Desktop/TEMP/.DS_Store"), new File ("~/Desktop/TEMP/_Anita.jpg"), new File ("~/Desktop/TEMP/Anita.jpg")]

In the TEMP folder (outside of what is hidden. DS_Store) a good jpg called Anita.jpg and one alias that is _Anita.jpg.

On PC, they have an extension .lnk, on Mac, it becomes more difficult to recognize.

I thought that filter the getFile with somethig like:

var fList = Folder("~/Desktop/TEMP").getFiles( function(f) {
          //... if f is alias then return false
          return true
});

BU I don't know how to perform the function.

Any idea?

Thank you!

Davide Barranca

www.davidebarranca.com

There is a file for this property. File.alias will be set to true if the file is an alias or shortcut.

Or are you saying that property does not work on Mac?

Tags: Photoshop

Similar Questions

  • How to filter the file type and size during uploadind files in APEX

    Hello

    I was wondering how I can do to validate the size of a file, before moving in my table? I want to filter the type of file, but for this one, I think I can use regular expressions in a validation process.

    I don't know if there is a way to read the size of the file, even before sending it into the temporary table.

    Thank you

    Bodart

    Hi salma,

    As far as I KNOW, you need to create a validation APEX (PL/SQL Returns Boolean or returns error text), which interrogate the details of the table apex_flow_files file. Here you can get the file type and size etc.

    So just to validate and if the validation fails, then delete the apex_flow_files and riase error message file.

    Kind regards
    Hari

    P.S. Please note that, if there are other validations apex on your page, and if they fail, always apex will load the file in the apex_flow_files table. It is sensible to create a validation (PL/SQL) that will trigger (condition) when online validation errors occurred. Make sure it is the LAST commit on your page in the sequence. And here you can write code to delete the table apex_flow_files.

    Published by: Hari_639 on Sep 20, 2012 22:09

  • using the file.openDialog filter expression

    Read the PDF Adobe JavaScript. I can't understand how we can filter the files available in the File.openDialog range. I would like to have the limited choice of .csv files. I know that I have a different method depending on whether the user is on a mac or a PC.

    Understand the function of filter on OSX was not obvious to me too.  Available version of Adobe's JavaScript Tools Guide which has a real-world example of the filter function, then I found this thread which has a very good example of implementation.  Then there's the StackOverflow answer to a question I posted this topic.  Hope these references help.

  • entry of the file type, how to filter only .csv

    use firefox 21.0
    use < input type = "file" accept = "xxx" / >

    How to filter only .csv (* not include all the files) when scour dialogue

    I try to use

    .CSV (view all)

    text/csv (.csv and show all files)

    application/csv (view all)

    text /-comma - separated values (view all)

    Help me, please
    Thank you
    Jean-Pierre

    It looks that there is work still to be done:

    • bug 826176 - support of file extension to < entry < = "" accept = "..." "li =" ">

    Please, do not comment in the bug reports: https://bugzilla.mozilla.org/page.cgi?id=etiquette.html

  • Could not mount the file. It has not been possible to find a filter for the requested command.

    Get the error message:

    Could not mount the file. It has not been possible to find a filter for the requested command.

    Why is - this happens when I open documents using Mac advertising agency and I'm on PC?

    Hi Mikael,

    files have been archived in archive zip-file when transferred via the ftp protocol? I guess, not.

    If the files were already placed in a document, InDesign on the agency side the following workflow might be the solution:

    Office on Mac OSX:

    1 package the InDesign document, as well as placed images and fonts of the necessary document with InDesign packing device.

    2. the folder packed in a zip zip file.

    3. download the zip file to an ftp server

    You on Windows:

    1. download the zipfile to your own workload.

    2 unzip the zip on your workload. Do not delete the zip file.

    3. rename the folder of the package to fit your scheme of naming of jobs (option)

    4 rename the InDesign document to adapt to your schema naming of jobs (option)

    5. open the InDesign file in the packed file.

    Do not move or save somewhere else.

    Alternative:

    Work with Dropbox to share documents on a shared volume of Dropbox, if documents must move forward and backward between you and the Agency.

    Uwe

  • Ideas to explain why, when you work with raw files in LR 2015 with Edit in PS 2015 and use the Camera Raw filter, the profile in the Lens Correction Panel tab is missing

    Ideas to explain why, when you work with raw files in LR 2015 with Edit in PS 2015 and use the Camera Raw filter, the profile in the Lens Correction Panel tab is missing? Mac OS X 10.10.5.  I reinstalled the OS and Lightroom and PS, nothing helps.

    Hi ParadigmRose,

    This is expected as profile tab behavior does not appear under Lens Correction Panel if you go to Camera Raw Filter in Photoshop

    However, profile tab would be there if you open a raw image directly in camera raw first.

    You can go to the filter menu > Lens correction in Photoshop, if you want to search for profiles with edit in Photoshop.

    Kind regards

    Claes

  • How to get the full path of the image open in a filter plugin file?

    Hello

    How to get the full path of the current file, including the directory, the file name with the extension. I need information to download the file on a webserver for a plugin. I found an example that can get the name of the document (title property) but without extension and directory. How can they?

    James

    There is no way to get the full path of the active document in a plug-in filter. A plugin automation has access to this information and the file format plug-ins.

  • Change the name of the file of "Import.xls" selection in Applescript

    Hi, I'm a tiger, but I try to change the name of a file in a folder (which can be any name that is) a name known.  In the end, just trying to import a file known to filemaker and need the name to be a known name.  That's what I have so far, but I have simply not success.  This goes to the folder 2 window and selects the first file... no problem, but, I can't seem to change the name of 'import.xls '.  Only excel files will be present in this folder, so I'm not worried about it.

    The other thing I would do is if there is no file in this folder to jump above everything and do nothing.

    Thanks for your help!

    Tell application "Finder".

    activate

    the value target of Finder window 2 to folder "Orders_to_Enter" of folder "Documents" of the file 'MINIJOHN'from folder 'Users' of startup disk

    Select the first file of the window of Finder 2

    Try

    the value the name of the selection of "IMPORT.xls".

    end try

    end say


    say

    Hello

    No need to manipulate the selection. You can just write something like this:

    set d to (path to documents folder as string) & "Orders_to_Enter:" as alias
    tell application "Finder"
        --open item d -- optional
        tell (item d's file 1 whose name extension = "xls")
            try
                set name to "IMPORT.xls"
            end try
        end tell
    end tell
    

    Tested under OS X 10.6.8.

    Good luck

    H

  • Office sync with two Macs leads to duplicate the files/folders

    Hi all

    I m using MacOS Sierra sync with desktop (and documents). Logged into my account, are two Macs (Air and a MB Pro). No I find in my iCloud drive a documents folder (it's good and the documents of the MB Air folder) and in this case a "Dokumente - MacBook Pro mg" folder which is the folder documents of my MB Pro (this is not so good). This isn't what I expected, I expected to have a documents folder which is identical on both machines. Does anyone know what I need to adjust to get things clear?

    Greetings from the Germany

    Mike

    I posted an article that explains all this to http://www.quecheesoftware.com/iCloud.html . This is a downloadable PDF file.

    Basically, you add to the folder Documents after activation of the synchronization of the files will be synchronized as you expect. But the files that were in your Documents on several Mac folders when you switch on for the first time on the synchronization will be placed in specific subfolders to your new folder of Documents iCloud Drive device. Apple apparently felt that he could not predict how each user would want their old files organized in the folder of Documents Drive iCloud, so Apple left to each user to reorganize the file later.

    I have now moved all my own files on the first level of my folder of Documents Drive iCloud and trashed the duplicate of the other device-specific folder. Now, everything syncs between computers, as expected. I left the two subfolders of specific to the device in place, either two empty for now, in case in the future that I might want to keep some files associated with one of the devices - for example, the alias files do not work on the other Mac. They will always sync in another subfolder, but at least I know to use it only on their own device.

    Apple certainly could have documented it better.

  • CouponPrinter.exe does not work. I can download and run the program, but does not, print already added the file name to the list of java exceptions

    running windows xp, update java 7 51, norton antivirus says file is ok, please help

    HI DJDOLLARROB,

    Thanks for posting, as you might expect, there are troubleshooting you can undertake to check why the download does not work. It is highly possible that the source that you have downloaded from cannot be no longer works. Is there a site that you can check to see if it does not work for them either? Also where it is downloaded from?

    Otherwise please see if scanitemswhendone is enabled: change what Firefox does when you click on or download a file

    If download hangs at the last minute (just before reaching 100%), the cause may be an antivirus software that tries to parse the file and during this process the instance of Firefox crashes.

    To resolve the issue, try disabling the analysis as follows:

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page. A list of parameters must appear
    3. Filter the list by typing in the search bar at top. Enter scanWhenDone. Now you should find the "browser.download.scanWhenDone" preference.
    4. Double-click this preference to set the value to false.
    5. Then, try to download something and see if it still crashes.

    Please reply and let us know if this helped you!

  • When using an accept custom attribute on an input file his show all files rather than the files that I choose (accept = "image/jpeg, image/gif, image/png, image)

    Hi, I am trying to use the entry of the file accept to limit the type of file that the user can choose when downloading a file. in fact, I have two problems that I can't understand our:

     1. If i am using the value "image/*" its limit the user to all the images but if i am using a custom
         limit e.g. "image/jpeg,image/gif,image/png,image/bmp" its show all the limits in the select box but the
         default value for ths user is "All Files". In Chrome and IE10 its working as needed.
    
     2. When i am trying to limit to "swf" files using the value "application/x-shockwave-flash" its show "All Files".
         In Chrome and IE10 its working as needed.
    

    I use Windows 7.

    Thank you.

    Well, it seems you do what it says in the documentation: https://developer.mozilla.org/en-US/docs/HTML/Element/Input#attr-accept

    Firefox actually allow you to drop a folder that is not on the list? In other words, is the problem of acceptance is ignored, or that the filter does not display the dialog box?

    Have you had a chance to get all of the bugs in Bugzilla?

  • Finder shows the files that do not exist.

    Hi all

    I have a problem with what appears to be broken aliases, but the type of file is an HTML document. I've been manually change a legacy site, using an app called "SightSucker" to download the site locally if I can do a search depth of terms and expressions which are no longer acceptable by my industry.

    After the work was done, I deleted the site locally, he seems to have left about 1500 small files (many repetitions of the same name).

    These files appear only in my finder under "My files", but nowhere else.

    When I 'Get info' is not the file "where:" information, it is just missing. Also, under sharing and permissions, it said "you have unknown access."

    I tried the things:

    1. Restarted my Mac (I know this is a standard windows fix, but I thought I'd give it a try).
    2. Remove cmd - does nothing
    3. Trail of trash-trash is transformed into icon to disassemble but eventually does nothing, it is not also actually slide.
    4. Copy/paste point creates error "update on the Clipboard cannot be pasted at this location. One or more of the items may have been deleted or are no longer available.
    5. Double-click created error ' alias '[file name]' could not open the original item cannot be found "-gives the following options:
      1. Delete aliases - does nothing
      2. Difficulty Alias--gives the finder dialog box "select new original. I created a dummy file to link to, but got the error "could not complete the operation. An unexpected error occurred (error code - 43)".
    6. Permissions are unknown I have tried repairing permissions. I had to do it manually with "sudo/usr/libexec/repair_packages - repair - standard-pkgs - volume / ' in the Terminal application, you cannot do this with disk utility in OS X El Capitan. Whatever it is, it was not to fix anything.
    7. EasyFind (the one with the squirrel icon) to find files. EasyFind could not find them.
    8. Use the command find Terminal, which also could not find them.

    This leads me to think that maybe these files do not exist in reality and the real problem is "Finder".

    If anyone has any ideas on what I am at a bit of a loss.

    Thank you very much.

    Al.

    Other information:

    MacBook Pro 2.5 GHz Intel Core i7

    500 GB of Flash storage

    OS X El Capitan V 10.11.4

    Please rebuild the Spotlight index. If you try to search now, there will be an indication that the indexing is in progress.

  • Show Microsoft Excel files in the download, but only empty software opens. You must then click on the link a second time for the file to open. ? Exchange

    By clicking on the links to files that Excel, used to work. In the last weeks of 2 (?) files are not open. I want to talk of the basic old .xls files.

    Clicking once, opens the Excel software only.
    Double click on open two windows with empty Excel software.
    By clicking on one to open the software. And then to go back to click a second time open the actual file.

    On all clicks, download popup box indicates the file to download. And no it does not appear on my desktop or in any other file.

    What you have in the following list - mine are all set to "always ask":

    Orange Firefox button or classic menu Tools > Options > Applications

    In the search above the list box, type or paste Excel to filter the list.

    You have additional modules related to the registration or downloading files that may affect the .xls files? You can review your modules here:

    Orange Firefox button or classic menu Tools > Modules

    Check the Extensions and Plugins categories.

  • I recently deleted the file "Recently bookmarked" in my FireFox 9.0.1 program. How can I restore it?

    Restart FF has not updated the file. I reinstalled FF to see if this corrects the problem. No luck. Restarted. Nothing.

    You must type Subject: config in the browser's address bar, press enter and when the page is displayed press on enter again or click on I'll be careful, I promise! and the filter on the top of the start page type smartbookmarks. In the results below, double-click the preference browser.places.smartBookmarksVersion and type 0 (zero) and click OK.

  • Move the file in the folder of the same name in AppleScript

    I had a problem with the script below. Basically, on the execution of the script, I want to create folders based on the name of the file and move the files in the files of autocorrelation. However, at the minute, that I'll have to choose the folder in which the script should run.

    Folder to choose a folder

    say application 'Finder '.

    located fileList to the name of every file in Folder with name extension is "m4v".

    end say

    the value point text delimiters to ".".

    Repeat with dittos in list of files

    get each text element of dittos

    masterFile defined in the point 1 of the result

    say application 'Finder '.

    create a new folder to Folder with properties {name: masterFile}

    move (each file from the folder Folder whose name contains masterFile) will cause

    end say

    end Repeat

    Ideally, I would like it to run automatically, but the folder is on an external hard drive. (\Volumes\Lacie\Movies). and I had problems to use the POSIX and 'alias' to properly re-create the path of the file desired.

    Any help would be greatly appreciated. Thank you!

    Hello

    You can try something like the AppleScript script which is a simple shell script wrapper.

    set d to (choose folder)'s POSIX path
    do shell script "/bin/bash -s <<'EOF' - " & d's quoted form & " 2>&1
    cd \"$1\" || exit
    shopt -s nullglob
    for f in *.m4v
    do
        m=${f%.*}
        [[ -d $m ]] || mkdir -p \"$m\" || continue
        mq=$(sed 's/[^[:alnum:]]/\\\\&/g' <<< \"$m\")   # quote meta characters for regex
        find -E . -depth 1 -type f -iregex '.*/'\"$mq\"'.[[:alnum:]]+$' -print0 | xargs -0 -J% mv % \"$m\"
    done
    EOF"
    

    For example, given that you choose/path/to/directory in the folder - source

    Input state:

    /path/to/directory/abc.m4v
    /path/to/directory/abc.txt
    /path/to/directory/abcd.m4v
    /path/to/directory/abcd.txt
    

    Status of the output:

    /path/to/directory/abc/abc.m4v
    /path/to/directory/abc/abc.txt
    /path/to/directory/abcd/abcd.m4v
    /path/to/directory/abcd/abcd.txt
    

    Briefly tested under OS X 10.6.8 but no guarantee of any kind. Please make sure that you have a full backup of the original files and directories before you run this kind of script.

    Good luck

    H

Maybe you are looking for