Your best friend for file transfer.

Fetch application logoFetch

permissions expansion (6 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 9 years ago by worker201
  • Latest reply 8 years ago from Scott McGuire
  • worker201 Member

    Fetch is a swell program. I am a paying customer, and I don't regret it. I use version 4.0.3 on OSX 10.3.5, and it has treated me well. But there are a couple changes that I might suggest:

    1. Change "obscure options" to "advanced options", and have them popup when you hit the "advanced options" button or something. A checkbox list, so users can keep track of what options are set would be convenient.

    2. Sometimes, it is necessary for advanced users to change the permissions of an entire file tree. Using the current permissions dialog, this could take hours. I recommend a "folder permissions option, which would include the -R flag from such Unix utilities as chmod. Of course this ought to be an advanced operation, not simple for newbs to do, as this can screw up your ftp server if you are not careful.

    3. I saw that Fetch is currently built using the Carbon libraries. Can we expect a Cocoa version soon?

    Thanks for listening

    Posted 9 years ago #

  • Jim Matthews Administrator

    Thanks for the feedback. We'll address #1 in our next release. I had not thought of a recursive set permissions command, thanks for that idea. As for Cocoa, is there a particular feature from Cocoa that you want us to take advantage of?

    Thanks,

    Jim Matthews
    Fetch Softworks

    Posted 9 years ago #

  • troy Member

    Let me cast another vote for a recursive chmod command. My current web host does not have terminal access, and the thought of changing by hand the permissions on a very large folder tree....well it makes me want to turn off the computer and go outside, and we simply can't have that happening!

    -Troy

    Posted 9 years ago #

  • Jim Matthews Administrator

    Thanks for the feedback. I've written an AppleScript that should let you change permissions on an entire folder tree; please let me know if this is useful.

    Jim Matthews
    Fetch Softworks
    --
    on RecursiveSetPermissions(folderName, filePerms, folderPerms)
    with timeout of 1200 seconds
    tell application "Fetch 4.0.3"
    open remote directory folderName

    set commandText to {}
    if (count of every remote file of transfer window 1) > 0 then
    set allFileNames to name of every remote file
    repeat with aFileName in allFileNames
    set commandText to commandText & ("SITE CHMOD " & filePerms & " " & aFileName)
    end repeat
    end if

    if (count of every remote directory of transfer window 1) > 0 then
    set allFolderNames to name of every remote directory
    repeat with aFolderName in allFolderNames
    set commandText to commandText & ("SITE CHMOD " & folderPerms & " " & aFolderName)
    end repeat
    else
    set allFolderNames to {}
    end if

    if (count of commandText) is not 0 then
    send to transfer window 1 ftp command commandText
    end if

    repeat with aFolderName in allFolderNames
    RecursiveSetPermissions(aFolderName as string, filePerms, folderPerms) of me
    end repeat

    open remote directory (parent directory of transfer window 1)
    end tell
    end timeout
    end RecursiveSetPermissions

    tell application "Fetch 4.0.3"
    set selectedItems to selection of transfer window 1

    if (count of selectedItems) is 0 then
    error "Please select one or more remote folders first"
    end if

    repeat with oneItem in selectedItems
    if class of oneItem is not remote directory then
    error (name of oneItem) & " is not a folder; please select only remote folders"
    end if
    end repeat

    set dialogReply to display dialog "Please enter the permission value to apply to files (e.g. 644)" default answer "644"
    set filePerm to text returned of dialogReply
    set dialogReply to display dialog "Please enter the permission value to apply to folders (e.g. 755)" default answer "755"
    set folderPerm to text returned of dialogReply

    repeat with oneItem in selectedItems
    send to transfer window 1 ftp command ("SITE CHMOD " & folderPerm & " " & name of oneItem)
    RecursiveSetPermissions(name of oneItem, filePerm, folderPerm) of me
    end repeat
    end tell

    Posted 9 years ago #

  • Glenn Member

    If the Fetch developers are still reading this thread, let me add my vote to the recursive chmod feature request. It could just be a checkbox on the permissions window of a folder (unchecked by default).* Would really be a time saver!

    * The option could also first be "enabled" in the Obscure preferences. Following that, the checkbox appears on the individual permissions window.

    Thanks for a great product!

    Posted 8 years ago #

  • Scott McGuire Administrator

    Hi Glenn,

    Yes, we're still reading the thread. Thanks for the feedback. Is the AppleScript that Jim posted above useful to you at all? We realize it's not as convenient as a checkbox, though.

    Scott McGuire
    Fetch Softworks

    Posted 8 years ago #

Topic closed

This topic has been closed.