Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9110439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:16:10+00:00 2026-06-17T03:16:10+00:00

I have looked around on the net for hours looking for this answer so

  • 0

I have looked around on the net for hours looking for this answer so I apologize if its there somewhere. This script below works fine except for the fact that it returns the .DS_Store file how can I exclude it from this query and all other hidden files for that matter but because I am creating the folder in my script the only one there is .DS_Store

tell application “System Events”
set listOfInputs to POSIX path of every disk item of folder a as list
end tell

Here is the full script below. I have been dropping files into the in folder after it is created but will eventually prompt for files before it is created.

on run

tell application "Finder"
    if not (exists folder "IN") then
        make new folder at desktop with properties {name:"IN"}
    end if
    if not (exists folder "OUT") then
        make new folder at desktop with properties {name:"OUT"}
    end if
end tell


set theINfolder to path to the desktop as string
set a to theINfolder & "IN:"


tell application "System Events"
    set listOfInputs to POSIX path of every disk item of folder a as list
end tell

set inputs to listOfInputs

set theOutfolder to path to the desktop as string
set outputFolder to theOutfolder & "OUT:"

set params to {}

main(inputs, outputFolder, params)

end run

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T03:16:11+00:00Added an answer on June 17, 2026 at 3:16 am

    The List Folder command has been deprecated and may stop working unexpectedly.

    Try:

    set inFolder to (path to desktop as text) & "IN"
    do shell script "mkdir -p " & quoted form of (POSIX path of inFolder)
    set listOfInputs to paragraphs 2 thru -1 of (do shell script ("find " & quoted form of (POSIX path of inFolder) & " \\! -name \".*\""))
    

    You can get the result as a string separated by spaces like this:

    set inFolder to (path to desktop as text) & "IN"
    do shell script "mkdir -p " & quoted form of (POSIX path of inFolder)
    set {TID, text item delimiters} to {text item delimiters, " "}
    set listOfInputs to paragraphs 2 thru -1 of (do shell script ("find " & quoted form of (POSIX path of inFolder) & " \\! -name \".*\"")) as text
    set text item delimiters to TID
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://jsfiddle.net/PerryCS/zFewp/2/ Hi there, I have played around with this for ~6 hours now and
I have looked around on Google and StackOverflow for the answer to this question,
I looked around but haven't found an answer to this. I have a CentOS
I have looked around the net and cannot find a project for this game.
I have looked around here and the Internet in general but it seems this
Sorry if this is obvious but have looked around and can't get this working:
I've looked around on stack overflow for days and have not seen an answer
I have looked around like crazy but don't get a real answer. I got
Hope somebody can help. Have looked around on the net but cannot seem to
Ok, I have looked around and could not find a solution to this problem.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.