slyfox Posted May 20, 2016 Share Posted May 20, 2016 Can someone please help me create a workflow: 1. Duplicate specific finder file (Pages document - no need to search) 2. Open or reveal the copy of the file I can't figure this out. Alfred has file filters or opening a specific file but not manipulating specific file. Link to comment
RodgerWW Posted May 20, 2016 Share Posted May 20, 2016 Try this out: http://www.alfredforum.com/topic/5914-file-action-duplicate And at the end of the script add the following to open the file in it's associated app: open "$name-1.$ext" To reveal the file in Finder, add the following to the end of the script: open -R "$name-1.$ext" Link to comment
slyfox Posted May 24, 2016 Author Share Posted May 24, 2016 This script adds an Alfred menu when browsing files. Is there anyway to add a specific keyword to manipulate a specific file rather than navigate folders to find the file via Alfred? Link to comment
RodgerWW Posted May 24, 2016 Share Posted May 24, 2016 Perhaps I am not understanding what you want exactly, but, how does one copy a specific file unless one has already found it? There is no need to search for a file by navigating menus with Alfred, just by using "SPACE" before your search in Alfred you can search anything. The script above is just a file action script ... duplicating a file IS a file action. Can you perhaps be a bit more specific in your exact need? Link to comment
slyfox Posted May 25, 2016 Author Share Posted May 25, 2016 All of the scripts assume that I need to find a file before doing something to it. What I need is to tell Alfred to simply duplicate a specific file. I do not need to search for it as it is the same file every time. Scenario: I need to write a report. 1. Trigger Alfred 2. type: "newreport" 3. Alfred Duplicates my "Report Template" pages document and reveals it in Finder. 4. I give the report a name and open the report. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now