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 7069825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:29:34+00:00 2026-05-28T05:29:34+00:00

I have this script set up or rename my torrent folders, however it keeps

  • 0

I have this script set up or rename my torrent folders, however it keeps giving me that weird finder error. It works when I don’t read it from a text file, but I need that so that I don’t need to select the folder all the time: Please help:

set read_folder to read (POSIX path of "/.torrentcleanup-prefs.txt") as text
set autofolder to (POSIX file read_folder)
set folderlist to ("")
tell application "Finder" to set folderlist to (get name of folders of folder autofolder)
repeat with i in folderlist
    set dfilepath to (POSIX path of ((autofolder & i) as text))
    set dfoldername to quoted form of POSIX path of dfilepath
    set dfolder to i
    set dmovie to quoted form of (text 1 thru ((length of dfolder) - 7) of dfolder as text)
    try
        do shell script "cd " & dfoldername & "; mv ./*.mkv ../" & dmovie & ".mkv"
    end try
    try
        do shell script "cd " & dfoldername & "; mv ./*.mp4 ../" & dmovie & ".mp4"
    end try
    do shell script "rm -r " & dfoldername & ""
end repeat

By the Way, the contents of “/.torrentcleanup-prefs.txt” is:

/Users/student/Desktop/FIX ME NOW/Test Folder/

  • 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-05-28T05:29:35+00:00Added an answer on May 28, 2026 at 5:29 am

    I didn’t look at your whole script but you’re reading the file wrong in the first line. You need to do it like this. So replace your first line with these two…

    set myFile to "/.torrentcleanup-prefs.txt"
    set read_folder to read (POSIX file myFile)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this script set up that echoes all relevant users in a database
I have a script that starts Tomcat and it looks like this: rem set
I have this sql script DECLARE @XmlStr XML SET @XmlStr = '<EmployeeID> <Employee>48f9194f-8d46-e111-8849-0050569445f1</Employee> <Employee>7d725561-8d46-e111-8849-0050569445f2</Employee>
This is boggling my mind today. I have a bash script to set a
I have set up a php script to receive url data like this: http://giffgaff.liamwli.co.uk/?name=liamwli
I have this script that run to fix my menu bar to the browser
I have this little batch script: SET @var = GREG ECHO %@var% PAUSE When
I have this handy snippet [see below] that truncates a set of list items
I'm a beginner and have this simple script. My question is how to set
I have this script, I keep getting an error: Run-time error '1004': Method 'Range'

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.