Jump to content

JA_UK

Member
  • Posts

    35
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

JA_UK's Achievements

Member

Member (4/5)

1

Reputation

  1. Hello again, Further to my entry above, I've done some more testing and it seems that when trying to use Alfred's 'Copy to...' action to copy a file, to a symbolic link of ANY folder (no matter where the folder or the symbolic link is) then it does not work. So the whole iCloud Drive element of my query may not actually be a factor, if Alfred just doesn't like symbolic links to folders? Thanks.
  2. Hi, I'm using macOS Sonoma 14.3.1 with Alfred version 5.1.4 [2195]. My iCloud Drive folder is located at /Users/[myname]/Library/Mobile Documents/com~apple~CloudDocs (I assume this is the same for everyone using Sonoma). The files and folders stored in my iCloud Drive folder are searchable within Alfred (which suggests to me that everything is working as it should, search wise). I have no problems copying files, using Alfred, into this folder (when I find it by typing com~apple~CloudDocs) via the 'Copy to...' action having searched for a file, or when bringing up the action menu against a file in the Finder. To make things more intuitive I created a symbolic link to my com~apple~CloudDocs folder. The symbolic link is located in my home folder and I have called it 'iCloud Drive'. I did this because beforehand a search for 'iCloud Drive' in Alfred did not bring anything up (only a search for com~apple~CloudDocs would bring up my iCloud Drive folder). This was despite the contents of my iCloud Drive folder being searchable in Alfred. When I double-click the 'iCloud Drive' symbolic link in the Finder, or search for and open it through Alfred, I am taken to my iCloud Drive folder (at /Users/[myname]/Library/Mobile Documents/com~apple~CloudDocs) as you would expect. If, however, I try to copy a file into the 'iCloud Drive' symbolic link using the 'Copy to...' action in Alfred, nothing happens and the file does not get copied into my iCloud Drive folder. Strangely, if I navigate in Alfred into the 'iCloud Drive' symbolic link, then choose a subfolder of my iCloud Drive folder, the file does succesfully copy. Does anyone have any idea how I can get this to work, please? Or know how I can get Alfred to find my iCloud Drive folder (not the symbolic link) by searching for 'iCloud Drive' rather than 'com~apple~CloudDocs' (that would mean I wouldn't need to bother with the symbolic link)? Many thanks.
  3. Thanks for the info - I think GitHub will be something I look into in the future. For the time being - my workflow can be downloaded from here: Download 'Google Maps Directions Search' workflow. Any feedback appreciated. Thanks.
  4. Hello all, I've been working on a workflow I'd like to share which allows the user to quickly and easily carry out a Google Maps directions search on the web, via Alfred. I'm not an expert and this would be the first workflow I've shared. I've exported the workflow and assumed I could simply attach it to a forum post, but it seems that *.alfredworkflow files are not an accepted file type. Any ideas on what I need to do to upload it? Many thanks.
  5. I'm not sure I understand the whole PATH thing yet, to be honest. But I've removed the PATH bit of the command and everything seems to be working fine - thank you.
  6. That's great. Also figured out I don't need to go through the steps of escaping the filepath / filename when using double quotes also. Thank you.
  7. Hi, I have made myself a workflow which takes file input via a universal action. The purpose of the workflow is to assist me to quickly and easily have ffmpeg duplicate and convert non-mp4 video files to mp4 versions. I have it set to do the following: 1 - Get the file extension of the file, 2 - If the file extension is already .mp4, flash up text saying 'already an mp4 file', then end the workflow, 3 - If not, pass details of the file to ffmpeg and get it to produce an mp4 version of the same file, with the new file having the same filename (other than it will now end in .mp4), in the same directory as the original. I have steps 1 and 2 working fine, and step 3 works fine in all cases when I use the Terminal Command option as follows: ffmpeg -i {var:original-filepath-and-filename} {var:original-filepath-and-new-filename} The variables are 'escaped' during the workflow, using the Replace action to replace all spaces with '\ '. I would like to use the Run Script option instead, so it all works in the background without opening a Terminal window. The following is the code in the Run Script action: PATH="/usr/local/bin:$PATH" ffmpeg -i ${original-filepath-and-filename} ${original-filepath-and-new-filename} This works fine, but only when the file to be converted is located in a place where there are no spaces in the names of any of the folders in the filepath. Example: If the file to be converted is located at /Users/me/Desktop/video.mkv both the Terminal Command option and the Run Script option work fine. If the file to be converted is located at /Users/me/Desktop/Video Projects/video.mkv only the Terminal Command option works, and the Run Script option does not. The debugger shows the following when the Run Script option does not work: "/Users/me/Desktop/Video\: No such file or directory". Any help greatly appreciated. Thanks.
  8. Hi, I have a workflow where I need to enter a 4-digit number (eg - 5825), and I want to split it into 2 variables; the first variable being the first 2 digits of the number (eg - 58) and the second variable being the last 2 digits of the number (eg - 25). Is there a way to accomplish this, please? I have seen the split variable action, but can’t figure out a way to use it to make this happen. Thanks.
  9. Thank you - I've done that. I've noticed a quirk; the script will 'approve' the following as valid HHMM entries: "231a" or "102g" (examples) - ie it will accept a letter as a valid last characted for some reason? Thanks again!
  10. Thank you - I've done that but now when I enter a 4 digit time (in HHMM format) I get the "Wrong period - Date must not be prior to today" error. That part of the script doesn't need to run in relation to a time, but it would be good if the script could check that that what is entered does amount to a time in HHMM format (ie - would give an error if I entered '2515' (hrs) for example)? Many thanks for your help so far - hope this makes sense!
  11. Could I also be cheeky and ask what the code would need to be, for a similar script filter, to ensure that a time was entered in HHMM (24-hr clock) format, please? Many thanks!
  12. Thanks. I know nothing about RegEx at the moment so I’ll take a look at your workflow and see if I can figure out how I could get it to work for me. Thanks. The workflow takes input from a combination of keyword entries and selections from list filters to form a URL used to perform a search on a website. One component within the URL is the date, which has to be in DDMMYY format only. When I use the workflow I’m usually good at entering input in this format, but I’m interested in including a mechanism to fix things / ask me to re-enter things if entered with a typo / extra digit etc. And / or also to not accept dates prior to today’s date. I have no idea how I’d do this with a script filter, so any further advice would be appreciated.
  13. Hi, Is it possible to limit the length of a keyword entry to a set number of characters? And if so how, please? I have a workflow which, by way of a keyword entry, asks me to enter a date in DDMMYY format. I'd like it to limit me to inputting a maximum of 6 characters (numbers only, if possible) and / or to 'check' the input and ask me to re-input it if not in DDMMYY format. Thanks in advance for any help received.
×
×
  • Create New...