Jump to content

mrchow19910319

Member
  • Posts

    28
  • Joined

  • Last visited

Posts posted by mrchow19910319

  1. 5 hours ago, deanishe said:

    Sorry. I was half-awake and misread your question.

     

     

    No. But this script does what you want:

    
    tell application "Sublime Text"
    	if it is running then
    		tell application "System Events"
    			tell process "Sublime Text" to click menu item "New Window" in menu "File" of menu bar 1
    		end tell
    	end if
    end tell
    -- Activate doesn't work with Sublime on Sierra
    do shell script "open -a 'Sublime Text'"

     

    Okay this worked. Thank you so much! 

  2. 33 minutes ago, deanishe said:

    The answer to your question is a few posts above yours. 

    You got me confused... your workflow above, (in the original post ) if I've already had a sublime window opened, can only direct me to my existing sublime text window. 

     

    I need the workflow to open new blank window everytime I key in: sublime. 

     

    Could you make one workflow that does these: 

    1. whenever keyed in: subl, open new blank sublime window in the active desktop. No matter whether the app is already opened. 
    2. open with sublime text (just like the old one)
    3. find and open with sublime text (just like the old one)

     

  3. I am using my laptop with an external monitor. 
    Laptop has a 720p screen (non-retina macbook pro) (lol) and external monitor's resolution is 2560x1440. 
    So everytime I connect and disconnect my laptop, I gotta adjust the size of web pages. 
    On my laptop I use zoom in 100% and on my external display I use 150%. 
    Otherwise the texts are gonna be too small. 
     
    Is there an alfred workflow can let me do this?
    It is getting annoying having to adjust manually every single time. 

  4. 12 minutes ago, Andrew said:

    snip

     

    This all happened a few minutes ago. Now alfred is fine. And I opened activity monitor it says it has a 0,1% CPU usage. 

    Do you still need a sample process file? 

     

    Also just to put in more context just now I downloaded a tool called: streamlink. https://github.com/streamlink/streamlink People use it for watching stream on their own media player (VLC and such) and when compares to using browser (watching twitch.tv for example) a lot of people said it uses a lot less cpu power. And I installed this tool. Before that even installed python on my mac. Then when using it watching stream, python is running in the background and at this point of time , alfred's cpu usage started rocket jumping. 

     

    I hope I clearly explained everything. Just to tell you the whole story. Does this have anything to do with the python script that was running at the background??

  5. I will normally have a lot of different sublime windows open. The problem is if I type in "sublime" it will open the existing window instead of a new blank window.

     

    How do I modify the current workflow to set the default as "open new sublime window" instead of just opening sublime text. 

    Or is it better for me to just create a new workflow so when I type in sublime text 

    1. (in default) it will open a new blank sublime text window .
    2. when holding command it will open the existing sublime window.

     

    What do you guys think?? How do I make it??? 

  6. On 08/03/2017 at 7:43 PM, deanishe said:

    snip

    Dude... thank you so much... It worked like a charm...

    I got a feeling that I may have to ask for more workflows down the road.... maybe I can donate to you some money??? 

    I feel bad for you to do this for me...

     

    Edit: I donated two dollars through packal. Hope you received it/ Thanks.. Will ask more sometime in the future. 

  7. I felt that I am just here to make other people do stuff for me...

     

    I have no idea how to make workflows... however I need a workflow that makes safari opens copied url and then directly jumped to reading mode. So I can copy everything into evernote later. I have tried to use evernote workflow, but sometimes it is not as clean as doing it separately. 

     

    Here is what I normally do: 

    1. copy whatever url I need.
    2. use alfred to make safari opens a new window.
    3. paste that url in safari window.
    4. switch to reading mode.
    5. copy the whole page.

     

    What I wanted to achieve:

    1. copy the url I need.
    2. open the new workflow.
    3. copy the whole page.

     

    I want alfred to make safari open the last thing (in this case, a url) in my clipboard and then switched to reading mode automatically.

     

    You can ask me more questions if I did not make myself clear.  

     

  8. 4 hours ago, deanishe said:

    snip

    er... sorry I tried but did not manage to get it working. 

     

    Here is what I created, (copied some template online.)   CW for new chrome window and when you hold command key , it will go into the incognito mode.

    I wanna add an option so that I can type in the url also. https://drive.google.com/file/d/0B4Oj-Aylh-ymWkh2UVVrNl9kejQ/view?usp=sharing

×
×
  • Create New...