Could someone share your thoughts about deleting folder in snowflake-snowsight? I have few folders created in snowsight,I wanted to delete one of the folder but not able to. I deleted all the worksheets from the folder(now folder is empty) but still I don't see any option to delete the folder? any thoughts ?
Click on worksheet (left menu) => Your empty folder in right big area => click on arraow against your folder name => Click delete. Refer image below.
Related
I put together a simple AppleScript that automatically opens new files, that are added to a specific folder. This works great! Problem is, if I rename the new file, then automator runs and re-opens the document. The naming convention is limited by the scanner, but is:
2022-12-21-191532
Year-Month-Date "-"
Random number (timestamp maybe?)
".pdf"
Is there a way to make my script only run on new files and ignore files that are renamed?
The settings are "AppleScript" & "on adding"
on adding folder items to this_folder after receiving added_items
delay 30
try
tell application "Finder"
--get the name of the folder
set the folder_name to the name of this_folder
--go to the desktop
activate
open this_folder
open added_items
reveal the added_items
end tell
end try
end adding folder items to
I tried googling this, but all I keep finding are examples on how to automate renaming files.
Here is an AppleScript solution which you may find useful.
This following AppleScript code will display a dialog allowing you to enter a new file name to rename your currently selected file, in Finder, to the new name. Before it renames the file, it will temporally disable all Folder Actions, then renames the file, then re-enables your Folder Actions. This way, simply renaming your file wont trigger your Folder Actions to run.
tell application "Finder"
if (count of (get selection)) ≠ 1 then
tell current application
activate
display dialog "Please Make Sure Only One File Is Selected" buttons ¬
{"OK"} default button "OK" giving up after 4
end tell
return
else
set nameOfFile to name of item 1 of (get selection)
tell current application
activate
set newName to text returned of ¬
(display dialog "Rename file " & nameOfFile & ¬
" to..." default answer "New File Name" buttons ¬
{"Cancel", "OK"} default button 2 cancel button 1 with icon 1)
end tell
set renameThisFile to item 1 of (selection as alias list)
end if
end tell
tell application "System Events"
if folder actions enabled then set folder actions enabled to false
delay 0.1
set name of renameThisFile to newName
delay 0.1
if not folder actions enabled then set folder actions enabled to true
end tell
What you could do is take the code from above, then in Automator create a new Quick Action, add a Run AppleScript command to the workflow and insert the AppleScript code.
After you name and save your new Automator Quick Action, you can then shoot over to System Preferences/Settings and assign it a keyboard shortcut.
Now anytime you are in Finder, you can rename your currently selected file with your new keyboard shortcut and you will not trigger your Folder Actions.
I have a Folder Action that automatically adds the tag "Aquarium" to any item added to this one specific folder. This following animation demonstrates me first renaming "file 1.txt" to "file.txt" in Finder (the normal way). As you can see, simply remaining that file did trigger the folder action which automatically added the tag to the renamed file. Then, I used my new keyboard shortcut to rename the selected file "file 2.txt" to "xxx" in Finder, without triggering the Folder Action to add the tag to the file after renaming it.
Is there any way to traverse through the image file that belongs to content asset folder?
For Instance:
https://loca.abc.com/contentassets/90a388f260a04f54b4056becc1c58307/lorem-ipsum-alternatives.png
If I have to locate this file in episerver media tab, how can i achieve this?
It is easy to locate files under global assets & site assets from "For all Site" & "For this site" container under Media tab but I cannot locate the files that are uploaded as part of content assets folder.
Any help is appreciated.
GUID in path (90a388f260a04f54b4056becc1c58307) means that this is (most probably) a "For this page" / "For this block" folder.
You can query database like this using that GUID:
SELECT pkID, ContentOwnerID FROM tblContent WHERE ContentGUID = '90a388f2-60a0-4f54-b405-6becc1c58307'
pkID will contain an ID of content folder, and ContentOwnerID will contain GUID of content (page or block) which is this folder belongs to, which you can use again to find owner content ID.
(you can also do the same in code using for example IContentLoader.Get<T>(Guid contentGuid))
Then you can use that ID to change edit URL and open that content inside edit UI, and then click "For This Page" / "For This Block" folder in Media tab.
Finally i was able to get to the path to contentassets in case anyone is facing the similar issue.
Navigating to
/EPiServer/CMS/admin/ManageContent.aspx?id=10574
where 10574is the content Id
Here is the episerver forum post that was helpful:
https://world.episerver.com/forum/developer-forum/CMS/Thread-Container/2019/2/how-to-delete-unreferenced-content-from-the-ui/
So the url needs to be
https://loca.abc.com/EPiServer/CMS/admin/ManageContent.aspx?id=10574
In summary, i had to build the above url.
1- https://loca.abc.com/ can be found using isitedefinitionresolver
2- define a const string /EPiServer/CMS/admin/ManageContent.aspx?id=
3- append contend id at the end.in this case 10574
This url will give you option to either edit/manage/delete/move the item to trash.
I am not entirely sure I understand what you need, but if you want to determine an assets' folder you could look into the ContentAssetHelper
G'day all and thanks for your help. Every now and then I have to copy downloaded files (after changing them) to a specific folder. In this example lets say d:\myfolder. I want to be able to do this quick with no hassles.
It was suggested that I look at the registry and the windows context menu. Truth be told I have no idea what to do.
Simply put; How do I MOVE files I selected to d:\myfolder from the context menu?
If possible greatly appreciated.
Thank you.
PS: The closest I could find was:
http://thismatter.com/tutorials/software/windows-xp/copy-move-files-more-efficiently.htm
This is almost there but cannot specify a specific folder.
Oof, a bit late in finding this question and responding, but here goes...
I want to do the same thing you're requesting, with the same aim: to do so in as few steps as possible.
The simplest solution for you would be to just create a shortcut for the target folder to which you wish to direct your files, and then move that shortcut into your "Send To" folder.
One add'l tip on this approach: selecting the target folder shortcut in the "Send To" menu will copy your file to the selected location; however, selecting the folder when also holding down the SHIFT key will move the file to that folder, instead.
I recently moved from ClearCase to Perforce. In CC, I used to sort the list of files in the ClearCase explorer by the last check-in time. Is there any way I can do a similar thing with Perforce ? Ideally, in P4V ?
Thanks
Yes - in P4V, select the directory where you want to list files, then from the View Menu click "Sort by date modified".
Note that you will need to do this in the Depot tab if you want to sort by last check-in time. If you do it from the Workspace tab which shows your local files, it will include the modification times for any files that you changed locally.
I have a question. I hope someone can help me out on this one.
I'm setting up a sharepoint-site for a client of ours. There's a document library ("Customers"), in which every Customer has one folder (=customername) with 4 sub-folders.
The subfolders are always the same ("Technical Information", "Documents", "Security information" & "Hardware").
What I would like to happen is whenever a new folder is created in the library (that is whenever a new customer is entered), the 4 subfolders are automatically created in that new folder.
I wanted to do this in a db-trigger & I found out that for every folder in the library, a record is created in the db-table dbo.AllDocs.
The thing is:
- there are about 63 columns in that table & the purpose off some of them is not clear to me.
- actually this isn't such a great id since writing in the WSS Content db via a script is
anyone got any idea's?
Thanks in advance for feedback!
Its is not recommended (I would say Should not) to touch the SharePoint DB. Always do your customization through the SharePoint UI or the ample number of other options you have with the SharePoint. For your case I would recommend to create a New Event Handler that will be attached to the Doc Lib. When you create a Folder (Top Level Customer) you need to create the respective sub folders. You also make sure that the Event Handler doesn't get trapped in the Recursion while creating the sub folders.
Refer the below links to Event Handler 1 2
I would suggest you to add this functionality in a feature. For example could you add an extra link in the New drop down menu item in the document library toolbar called "New customer".
In the code for this command, create the 4 folders programmatically.
This would mean that you don't have to worry about determine whether you are creating a customer folder or a normal folder in your event handler.