Jump to content

liatmgat

Member
  • Posts

    33
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by liatmgat

  1.  

    Keep in mind that Alfred 3 allows you to set blur independently for each theme rather than on a global level, so you may want to take a look at that first.

     

    In a custom theme, click the blurry circle in the top left to change the blur level for the theme. Of course, make sure that your theme is at least slightly transparent for it to work. :)

     

    Cheers,

    Vero

     

     

    Hi Vero,

     

    I looked in the Help documentation but couldn't find out where this setting is: how do I make sure my theme is slightly transparent? I changed the opacity on the colors but it still seems solid.

     

    Thank you!

  2. Thanks all! I did a ghetto workaround to make this work with Bartender - I just had the script quit Bartender at the beginning and then start it again at the end. It actually is surprisingly fast, so it seems like it will work for me until someone smart comes up with a real fix.

     

    (I adapted tabacitu's version because I thought it was faster.) Thank you paulw - I leave yours running too so I can tell from the Alfred results whether DND is off or on. But then I run tabacitu's version to toggle it.

    try
    	tell application "Bartender 2"
    		quit
    	end tell
    end try
    tell application "System Events"
    	set toggled to false
    	option key down
    	delay 0.1
    	
    	try
    		click menu bar item "Notification Center" of menu bar 2 of application process "SystemUIServer"
    		set toggled to true
    	end try
    	
    	if not toggled then
    		try
    			click menu bar item 1 of menu bar 2 of application process "SystemUIServer"
    		end try
    	end if
    	
    	option key up
    end tell
    tell application "Bartender 2"
    	activate
    end tell
    
  3.  

    Hi dfay,

     
    I just wanted to say thank you so much for posting this solution for me to try!
    I got super busy at work yesterday and today so I haven't been able to test it out but I will do so very soon.
     
    Thank you again!
     
    Liat

     

     

     

    Hi there,

     

    Thank you so much for this script! I tried it out today but the script editor returned this result, whether or not any files were actually missing:

     

    {"File 1 is missing"}

     

    In order to run the script, I selected the folder in Finder and then ran the script. Is there something I'm doing wrong?

    Thank you,

    Liat

  4. Hello Brainy Alfred Workflow Geniuses,

     
    This has to do with scripting more than workflows really, but I don't know where else to go for help. I am new to scripting and don’t even know where to start on this, so I am wondering if there is a way to do what I want.
     
    I want to be able to run a script on a folder or group of folders to find out if there are any missing items in the folder, that is, if the series of items is missing any numbers. There might be more than one way to do this, and I’m open to any way that works.
     
    The script should display a dialog when the folder doesn’t have the right number of files in it.
     
    In order to know what the number of files should be (and this is what I want to automate) I have to look at the serial numbers on the files within the folder. The number of files in the folder should equal (the highest serial # - the lowest serial #) plus 1.
     
    Here is a real-life example. The folder to be looked at it contains a folder inside it and inside that is a set of serially numbered .dpx files numbered from 1000 to 1150.
     
    tb0020_comp_v028 /
    2370x1800 /
    tb0020_comp_v028.1000.dpx - tb0020_comp_v028.1150.dpx
     
    The script should look at the highest/last serial number (1150), subtract the lowest serial number (1000), add 1, and compare that to the number of .dpx files in the folder. There should be 151 files in the folder.
     
    Or, like I said, maybe there is a script that can spot whenever a series of files misses a number. 
     
    Ideally if the folder were missing one of the files in the series, the alert would say something like
     
    “Broken Frames Detected! Missing tb0020_comp_v028.1032.dpx and tb0020_comp_v028.1047.dpx”
     
    Can anyone point me in the right direction as far as creating something like this?
     
    Thank you very much,
    Liat
  5.  

    You don't need this bit. You get the Finder selection in your AppleScript. 

     

     

    This should do the trick: 

    on roundThis(n, places)
    	set x to 10 ^ places
    	(((n * x) + 0.5) div 1) / x
    end roundThis
    
    on humanSize(bytes)
    	set i to 1
    	set n to bytes
    	set units to {"B", "KB", "MB", "GB", "TB"}
    	repeat while i < (count of units) and n > 1000
    		if n > 1000 then
    			set n to n / 1000
    			set i to i + 1
    		end if
    	end repeat
    	if i > 2 then
    		set n to roundThis(n, 2)
    	else
    		set n to roundThis(n, 1)
    	end if
    	return (n as string) & " " & (item i of units) as string
    end humanSize
    
    tell application "Finder"
    	set selectedItem to (item 1 of (get selection))
    	set theBytes to (size of selectedItem)
    	"Size: " & my humanSize(theBytes)
    end tell
    

    Don't ask me how the roundThis() function works.

     

     

    OH MY GOD YOU ARE AMAZING!!! You have made my life so much easier! Thank you, thank you from the bottom of my heart.

  6. Thank you so much - you are amazing! It's so cool that you know how to do this! I really appreciate it.

     

    I set up the workflow like you said and it works.

     

    However, the output is a little confusing if you're not a computer. It displays it like this:

     

    Size: 5739242 (5783552)

     

    Is there any way to get it to display like it does in the File Info window, like this? ->  Size: 5.7 GB

     

    Again, thanks a million. 

     

  7. Thank you!!!

    Best workflow ever! I really appreciate it.

     

    You might want to edit the title of the main post to "Show/Hide file extensions" instead of "Share/hide" because that's a little confusing. I skipped over it when I searched for something like this the first time.

     

    Anyway, thanks a million for posting this workflow.

     

     

    A quick little workflow for showing and hiding file extensions. The workflow works as a file action (one action for showing and one for hiding extensions) and as a keyboard shortcut (for toggling the visibility of the file extensions of the items selected in OS X). 

     

    Show%3AHide%20FIle%20Extensions%20-%20Sc

    Download: Show/Hide File Extensions

  8. Thank you, both!

     

    Vero, I do have Alfred set up like this, but the times when I need to do it the other way is when I don't know the URL, I only know the keyword that pulls up the URL.

     

    For example, I can remember "Knitting Needle Size Conversion Chart" but I can't remember "http://www.yarnfwd.com/main/needleconv.html"

     

    I'd love to be able to pull up that URL with my keyword and then hit cmd-C to copy. Should I do a feature request to add actions to the Web Search menu, or something like that? Or am I the only one who would use this..

     

    Thanks!

×
×
  • Create New...